【问题标题】:Adobe PhoneGap BuildAdobe PhoneGap 构建
【发布时间】: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


【解决方案1】:

使用绘画打开所有资源图像,然后将它们“另存为”为 png。

您可能会看到一张或多张图片不会尝试直接“另存为”为 png,而是保存为 bmp 或 jpg,它们是损坏的图片!将它们全部保存为 PNG!

之前您将它们保存为数据文件中的 jpeg 时出了点问题,但它们的文件扩展名为 png。

它对我有用。再见。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-05-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多