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

來源:互聯網
上載者:User

標籤:技術分享   widget   button   api   article   version   text   class   .net   

解決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

 

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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.