问题描述
- android studio 发布ap失败 求大神!
-
报错如下:
Error:Failed to run command:
D:Program FilesAndroidandroid-sdkbuild-tools20.0.0aapt.exe s -i C:UsersAdministratorAndroidstudioProjectsEBook21appsrcmainresdrawable-hdpistart.png -o C:UsersAdministratorAndroidstudioProjectsEBook21appbuildintermediatesresreleasedrawable-hdpi-v4start.png
Error Code:
42
Output:
libpng error: Not a PNG file
:app:mergeReleaseResources FAILED
Error:Execution failed for task ':app:mergeReleaseResources'.Error: Failed to run command:
D:Program FilesAndroidandroid-sdkbuild-tools20.0.0aapt.exe s -i C:UsersAdministratorAndroidstudioProjectsEBook21appsrcmainresdrawable-hdpistart.png -o C:UsersAdministratorAndroidstudioProjectsEBook21appbuildintermediatesresreleasedrawable-hdpi-v4start.png
Error Code:
42
Output:
libpng error: Not a PNG file是什么意思?我删掉build文件夹,重新发布,依旧报这个错 哪位大神好心指导一下。。。
解决方案
你的start.png文件实际上不是png文件,你不是直接改的后缀名吧?
解决方案二:
报错如下: Failed to complete Gradle execution. Cause: A fatal exception has occurred. Program will exit.的解决方法:
在Settings-->Gradle-->GradleVM options中加入“ -Xmx512m -XX:MaxPermSize=512m”
解决方案三:
明显就是那个文件的问题
时间: 2024-11-08 18:27:38