日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

No resource found that matches the given name 'android:Widget.Material.ActionButton'.

發布時間:2024/4/15 32 豆豆
生活随笔 收集整理的這篇文章主要介紹了 No resource found that matches the given name 'android:Widget.Material.ActionButton'. 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

Eclipse 下搭建Android 開發環境(環境搭建參考:點擊打開鏈接)

搭建完成后,新一個Andoroid 項目,出現如下錯誤:

[2014-11-19 14:16:34 - appcompat_v7] WARNING: unable to write jarlist cache file D:\My java Projects\appcompat_v7\bin\jarlist.cache [2014-11-19 14:16:34 - appcompat_v7] WARNING: unable to write jarlist cache file D:\My java Projects\appcompat_v7\bin\jarlist.cache [2014-11-19 14:16:36 - HelloAndroid] D:\My java Projects\appcompat_v7\res\values-v21\styles_base.xml:75: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton'. [2014-11-19 14:16:36 - HelloAndroid] [2014-11-19 14:16:36 - HelloAndroid] D:\My java Projects\appcompat_v7\res\values-v21\styles_base.xml:79: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.CloseMode'. [2014-11-19 14:16:36 - HelloAndroid] [2014-11-19 14:16:36 - HelloAndroid] D:\My java Projects\appcompat_v7\res\values-v21\styles_base.xml:83: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.Overflow'. [2014-11-19 14:16:36 - HelloAndroid] [2014-11-19 14:16:36 - HelloAndroid] D:\My java Projects\appcompat_v7\res\values-v21\styles_base.xml:25: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionBar.TabView'. [2014-11-19 14:16:36 - HelloAndroid] [2014-11-19 14:16:36 - HelloAndroid] D:\My java Projects\appcompat_v7\res\values-v21\styles_base.xml:29: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabView'.



原因:新建項目時,minSdkVersion相應的Android x.x(API)本地sdk中不存在。

解決方法 一:啟動Android SDK Manager(如下圖所示) ,更新sdk,將所需Android x.x(API xx)安裝到本地即可。

(PS:建議把最常用的Android版本都下載到本地)


解決方法二:修改AndroidMenifest.xml文件,將minSDKVersion更改為本sdk中已有的android x.x(API xx).

這樣會降低Android程序兼容的版本。

所以建議使用第一種方法,即更新sdk.


 與50位技術專家面對面20年技術見證,附贈技術全景圖

總結

以上是生活随笔為你收集整理的No resource found that matches the given name 'android:Widget.Material.ActionButton'.的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。