您当前的位置: 首页 >  Java

蓝不蓝编程

暂无认证

  • 2浏览

    0关注

    706博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Android Studio编译失败:java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessEx

蓝不蓝编程 发布时间:2018-09-26 17:32:55 ,浏览量:2

Android Studio编译报错:

java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: Error while executing process D:\android\sdk\build-tools\26.0.2\aapt.exe with arguments {package -f --no-crunch -I D:\android\sdk\platforms\android-26\android.jar -M \\?\D:\android\build\intermediates\manifests\full\debug\AndroidManifest.xml -S D:\android\build\intermediates\res\merged\debug -m -J \\?\D:\android\build\generated\source\r\debug -F D:\android\build\intermediates\res\debug\resources-debug.ap_ -D \\?\D:\android\build\intermediates\multi-dex\debug\manifest_keep.txt --custom-package com.test -0 apk --preferred-density xxxhdpi --output-text-symbols \\?\D:\android\build\intermediates\symbols\debug --no-version-vectors}     com.android.ide.common.process.ProcessException: Error while executing process D:\android\sdk\build-tools\26.0.2\aapt.exe with arguments {package -f --no-crunch -I D:\android\sdk\platforms\android-26\android.jar -M \\?\D:\android\build\intermediates\manifests\full\debug\AndroidManifest.xml -S D:\android\build\intermediates\res\merged\debug -m -J \\?\D:\android\build\generated\source\r\debug -F D:\android\build\intermediates\res\debug\resources-debug.ap_ -D \\?\D:\android\build\intermediates\multi-dex\debug\manifest_keep.txt --custom-package com.test -0 apk --preferred-density xxxhdpi --output-text-symbols \\?\D:\android\build\intermediates\symbols\debug --no-version-vectors}     org.gradle.process.internal.ExecException: Process 'command 'D:\android\sdk\build-tools\26.0.2\aapt.exe'' finished with non-zero exit value 1      

命令行中执行如下命令查看详细报错(需先切换到当前工程目录下):

  Windows: gradlew clean build --stacktrace

  MAC/Linux: ./gradlew clean build --stacktrace

查看详细的报错,发现存在如下报错:

D:\android\projects\test\test_lib\build\intermediates\bundles\debug\res\layout\iatdemo.xml:31:23-51: AAPT: No resource found that matches the given name (at 'hint' with value '@string/text_show_iat_result').

D:\android\projects\test\app\build\intermediates\res\merged\debug\layout\iatdemo.xml:26: error: Error: No resource found that matches the given name (at 'hint' with value '@string/text_show_iat_result').

> Task :app_consignor:processDebugResources FAILED Failed to execute aapt com.android.ide.common.process.ProcessException: Failed to execute aapt  

解决方案:

上面提示的资源是多余的,删除即可。

各自情况不一样,需要根据实际报错信息处理。

 

安卓开发技术分享:https://blog.csdn.net/yinxing2008/article/details/84555061

关注
打赏
1639405877
查看更多评论
立即登录/注册

微信扫码登录

0.0908s