Android appcompat-v7:21错误构建gradle

k0s*_*0sh 1 android build.gradle android-gradle-plugin

我今天已下载android API 21 sdk并将支持库更新为21,但每当我尝试构建项目时,gradle会给出此错误消息

错误:任务':app:processDebugResources'的执行失败.com.android.ide.common.internal.LoggedErrorException:无法运行命令:K:\ android-sdk\build-tools\21.0.0\aapt.exe package -f --no-crunch -IK:\ android-sdk\platforms\android-21\android.jar -MK:\ workspace\MyApplication\app\build\intermediates\manifests\full\debug\AndroidManifest.xml -SK:\ workspace\MyApplication\app\build\intermediates\res\debug -AK:\ workspace\MyApplication\app\build\intermediates\assets\debug -m -JK:\ workspace\MyApplication\app\build\generated\source\r\debug -FK:\ workspace\MyApplication\app\build\intermediates\res\resources-debug.ap_ --debug-mode --custom-package com.innov8tif.myapplication -0 apk --output-text-symbols K:\ workspace\MyApplication\app\build\intermediates\symbols\debug错误代码:-1073741819

如果这是android 21 SDK中的错误或我做错了什么的任何想法.
我正在使用android studio 0.8.11

Ego*_*uba 6

你必须更新buildToolsVersionto 21.0.1compileSdkVersionto 21.它在build.gradle文件中:

android {
    compileSdkVersion 21
    buildToolsVersion '21.0.1'
    ...
}
Run Code Online (Sandbox Code Playgroud)