包含Appcompat V7后,在新项目中构建Gradle时出错

时间:2014-12-13 12:29:39

标签: android android-gradle android-appcompat

  

错误:任务':app:processDebugResources'的执行失败。   com.android.ide.common.internal.LoggedErrorException:无法运行命令:       E:\ Program \ AndroidStudio \ sdk \ build-tools \ 21.0.0 \ aapt.exe包-f --no-crunch -IE:\ Program \ AndroidStudio \ sdk \ platforms \ android-21 \ android.jar -MC: \ Users \ nick \ AndroidStudioProjects \ MaterialBasicApp \ app \ build \ intermediates \ manifests \ debug \ AndroidManifest.xml -SC:\ Users \ nick \ AndroidStudioProjects \ MaterialBasicApp \ app \ build \ intermediates \ res \ debug -AC:\ Users \ nick \ AndroidStudioProjects \ MaterialBasicApp \ app \ build \ intermediates \ assets \ debug -m -JC:\ Users \ nick \ AndroidStudioProjects \ MaterialBasicApp \ app \ build \ generated \ source \ r \ debug -FC:\ Users \ nick \ AndroidStudioProjects \ MaterialBasicApp \ app \ build \ intermediates \ libs \ app-debug.ap_ --debug-mode --custom-package eu.twenty1media.materialbasicapp -0 apk --output-text-symbols C:\ Users \ nick \ AndroidStudioProjects \ MaterialBasicApp \应用程序\编译\ \中间体符号\调试   错误代码:       -1073741819

任何人都有解决方案吗?想在我的应用程序中为Material Design添加此内容。

1 个答案:

答案 0 :(得分:0)

您需要更新的构建工具,compileSdkVersion 21buildToolsVersion "21.1.1"targetSdkVersion 21

一起使用android { compileSdkVersion 21 buildToolsVersion "21.1.1" defaultConfig { applicationId "com.yourcompany.yourpackagename" minSdkVersion 10 targetSdkVersion 21 versionCode 1 versionName "1.0" } ...
{{1}}