java aapt.exe'' 以非零退出值 1 结束
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/29450620/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
aapt.exe'' finished with non-zero exit value 1
提问by tommi878
I have problem, When I run my app that write:
我有问题,当我运行我的应用程序时:
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\Tomas\sdk\build-tools.1.2\aapt.exe'' finished with non-zero exit value 1
Can any help me?
任何人都可以帮助我吗?
采纳答案by audiebant
At first you go to "Build"-> "Clean Project"
首先你去“构建”->“清理项目”
and then go to "Build" -> "Rebuild Project"
然后转到“构建”->“重建项目”
回答by Ambilpura Sunil Kumar
Change The buildToolsVersion To compileSdkVersion as Shown Below Code:...
将 buildToolsVersion 更改为 compileSdkVersion,如下代码所示:...
Before: It Was Not Working....
之前:它不起作用......
android {
compileSdkVersion 23
buildToolsVersion '22.0.1'
defaultConfig {
applicationId 'com.kdmsl.kraapp'
minSdkVersion 14
versionCode 3
versionName "1.3"
aaptOptions {
additionalParameters "--no-version-vectors"
}
}
After Changes:
更改后:
android {
compileSdkVersion 23
buildToolsVersion '23.0.0'
defaultConfig {
applicationId 'com.kdmsl.kraapp'
minSdkVersion 14
versionCode 3
versionName "1.3"
aaptOptions {
additionalParameters "--no-version-vectors"
}
}
回答by Ambilpura Sunil Kumar
one more solution for this query...
此查询的另一种解决方案...
just check the .xml or layout file which you recently modified or added views(like any thing Textview,EditText,Button...) you might be missing something(like background images, or string value etc) for views
只需检查您最近修改或添加视图的 .xml 或布局文件(例如 Textview、EditText、Button...
-Work For Sure @Ambilpura Sunil
- 一定要工作@Ambilpura Sunil