【发布时间】:2016-09-05 10:11:19
【问题描述】:
当我重建我的应用程序时,出现错误:“:mergeReleaseResources FAILED”。
你能帮我解决吗?
我认为这是由于 splash.png 文件,但它不存在...
查看下面有错误的日志文件的一部分
:mergeReleaseResourcesAAPT err(Facade for 1183437625) : No Delegate set : lost message:libpng error: Not a PNG file
AAPT: libpng error: Not a PNG file
AAPT: libpng error: Not a PNG file
AAPT: libpng error: Not a PNG file
:mergeReleaseResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':mergeReleaseResources'.
> Crunching Cruncher splash.png failed, see logs
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 1.562 secs
Error: /project/gradlew: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
AAPT err(Facade for 1183437625) : No Delegate set : lost message:libpng error: Not a PNG file
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':mergeReleaseResources'.
> Crunching Cruncher splash.png failed, see logs
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
at ChildProcess.whenDone (/project/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:818:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
【问题讨论】:
-
你把文件放进去后试过了吗?
-
我没有那个文件
-
创建一些png图像的同名文件。试试看
-
这个文件放在哪里
-
在应用程序的 www 文件夹中。
标签: android cordova phonegap-build