android - 构建android项目时出错

标签 android android-sdk-tools android-build

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

相关文章:

android - 将Android设备与电视模拟器上的应用程序配对

android - 因 Android studio 编译问题 ManifestMerger2$MergeFailureException 而被阻止

android - Gradle 构建在 OSX 上的 Android Studio 旧版本和新版本上失败

android - 书法库上的 NoClassDefFoundError

android - Fragment 的菜单在屏幕旋转时将自身多板化

android - 如何创建多语言安卓应用程序?

android - 库未添加到 Android 中的 Android Private Libraries 文件夹中

android - 错误 : ANDROID_HOME is not set and "android" command not in your PATH on OS X

android - 如何将 Eclipse Android 项目转换为使用 Ant 进行构建?

android - 创建自定义 LinearLayout 并用 View 填充它