新建项目报错,不知道为什么,以前从未出现过的错误,把sdk更新之后,出现莫名错误,自己也是一知半解,在网上找了好久的错误,终于在一个english网站找到了解决方法,soga,从未觉得english如此美好

错误信息如下

....\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'.
....\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'.
....\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'.
....\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'.
....\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'.

 

 

 

 

因为我最新的api版本是23,而我选择编译的版本是19。然而,对于编译版本的appcompact_v7 project必须得是你sdk中最新版本的api。

修改如下

修改appcompat_v7文件夹下的project.properties文件

eclipse新建项目,报错“Error: workspace\appcompat_v7\res\values-v21\styles_base.xml No resource found that matches the given name”

 

修改项目文件夹下的project.properties文件,如下

eclipse新建项目,报错“Error: workspace\appcompat_v7\res\values-v21\styles_base.xml No resource found that matches the given name”

 

搞定,接着点击project下的clean即可。

 

感受:简直了,白用这么就的eclipse,白学这么就的android了,如此问题,纠结如此久,果然还是太弱了

 

相关文章:

  • 2022-12-23
  • 2021-06-21
  • 2021-06-06
  • 2021-05-13
  • 2022-03-08
  • 2021-06-28
  • 2022-12-23
  • 2021-09-26
猜你喜欢
  • 2022-03-07
  • 2021-10-19
  • 2021-06-29
  • 2021-09-10
  • 2021-12-16
  • 2021-06-27
  • 2022-12-23
相关资源
相似解决方案