小编She*_*eda的帖子

当我将PNG文件放在drawable文件夹中时,Android Studio崩溃(aapt.exe返回42)

在昨天的更新之后,它将不会使用这两个PNG图像构建或运行项目作为背景图像.一旦我删除这些图像一切正常(我将图像放在drawable文件夹中).

:app:mergeDebugResources FAILED
C:\Users\Daedlues\Desktop\Android-Studio-Projects\AndroidInterView\app\src\main\res\drawable\middle.png
Error:Error: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\Daedlues\Desktop\Work\SDK\build-tools\21.1.2\aapt.exe'' finished with non-zero exit value 42
Error:Execution failed for task ':app:mergeDebugResources'.
> C:\Users\Daedlues\Desktop\Android-Studio-Projects\AndroidInterView\app\src\main\res\drawable\middle.png: Error: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\Daedlues\Desktop\Work\SDK\build-tools\21.1.2\aapt.exe'' finished with non-zero exit value 42
Information:BUILD FAILED
Run Code Online (Sandbox Code Playgroud)

android android-studio

6
推荐指数
2
解决办法
2万
查看次数

标签 统计

android ×1

android-studio ×1