【问题标题】:Got an Error while building android project构建android项目时出错
【发布时间】:2014-12-29 11:29:26
【问题描述】:

我是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

我已经阅读了网站上发布的该问题的大部分答案,但它并没有解决我的问题。

【问题讨论】:

  • and the extras,API 8,11,14,17,19,20 - 您需要 API 级别 21 SDK。

标签: android android-sdk-tools android-build


【解决方案1】:

除了您拥有的 API 级别 21 之外,请尝试安装这些 API。 'android:Widget.Material.ActionButton'. styles_base.xml /appcompat_v7/res/values-v21 似乎正在请求 API 级别 21,所以这可能会起作用。

【讨论】:

  • 正如我在comment 中所说的那样。
  • 糟糕,抱歉,没看到!
  • 我选择 API 级别 17 来编译项目的问题,但是在 activity_main.xml 上,我发现当我将其切换到 API 级别 17 时选择了 API 级别 21,它不起作用。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-08-20
  • 1970-01-01
  • 2011-11-04
相关资源
最近更新 更多