我是 android 开发的初学者,我安装了所有的构建工具和额外的 API 8、11、14、17、19、20。 我创建了一个用 API 17 编译的新项目(目标 SDK 是 API 17)。 但是当我运行这个项目时,出现了很多错误:
Description Resource Path Location Type
error: Error retrieving parent for item: No resource found that matches the given name
'android:Widget.Material.ActionButton'. styles_base.xml /appcompat_v7/res/values-v21 line 75
Android AAPT Problem
Description Resource Path Location Type
The container 'Android Dependencies' references non existing library
'C:\Users\SLIM\workspace\appcompat_v7\bin\appcompat_v7.jar' NewProject Build path Build `Path Problem`
Description Resource Path Location Type
The project cannot be built until build path errors are resolved NewProject Unknown Java
Problem
我已经阅读了网站上发布的该问题的大部分答案,但它并没有解决我的问题。
最佳答案
尝试安装 API Level 21 以及现有的 API。
'android:Widget.Material.ActionButton'。 styles_base.xml/appcompat_v7/res/values-v21
似乎在请求 API 级别 21,因此这可能会起作用。
关于android - 构建android项目时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27687993/