如何解决22.0.1 \ aapt.exe''完成非零退出值1
我在编写Android中的工作室,然后会出现这样的错误:
I was coding in android studio then this error will appear:
无法解析的符号R
错误:未能执行任务:演示:processDebugResources。 com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:处理'命令'D:\ Android的开发\ SDK \ Android的SDK \集结工具\ 22.0.1 \ aapt.exe 非零退出值完成1
Error:Execution failed for task ':demo:processDebugResources'. com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'D:\Android Development\sdk\android-sdk\build-tools\22.0.1\aapt.exe'' finished with non-zero exit value 1
这是我的摇篮:
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion '22.0.1'
defaultConfig {
applicationId "br.liveo.ndrawer"
minSdkVersion 21
targetSdkVersion 22
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
}
dependencies {
compile project(':library')
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:design:22.2.0'
compile 'com.android.support:appcompat-v7:22.2.0'
}
我采用Android工作室V 1.0,所有的API 22和API 21及工具和SDK管理器的附加功能将被更新。
I use Android Studio V 1.0 , all API 22 and API 21 and Tools and Extras of SDK Manager are updated.
该选项不工作:
文件/无效搜藏/重启
编译/重建项目
编译/清理项目
我应该怎么知道的?
TNX
我解决我的问题:
1)检查给未知的src所有的XML文件。 ImageView的或的ImageButton或任何想,等:
1) check all your XML files for given unknown src. ImageView or ImageButton or any think, et:
机器人:SRC =@可绘制/卡
android:src="@drawable/cards"
然后
编译/重建项目
或
编译/清理项目
或
文件/无效搜藏/重启
您的问题将解决肯定100%:D
Your problem will solve for sure 100% :D