解決Android中No resource found that matches android:TextAppearance.Material.Widget.Button.Inverse問題


解決Android中No resource found that matches android:TextAppearance.Material.Widget.Button.Inverse問題
http://blog.csdn.net/u012336923/article/details/48289485

 

  1. /路徑/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.0.1/res/values-v23/values-v23.xml  
  2. Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.  
  3. Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'.

這是API 23(Android 6.0)中的資源文件,而查看build.gradle,編譯的SDK只是為21,我們可以嘗試將compileSdkVersion設為23(如果sdk里面沒有下載API 23的,則需要下載),問題解決!

如果不想下載API 23怎么解決呢?降低appcompat的版本:將build.gradle里面的dependencies對應的appcompat版本降低:

將compile 'com.android.support:appcompat-v7:23.0.1'的版本改為:'com.android.support:appcompat-v7:22.2.1'

如果想了解更多:http://stackoverflow.com/questions/32092511/resource-error-in-android-studio-after-update-no-resource-found

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM