2016-09-05 6 views
0

私のアプリケーションを再構築すると、エラーが発生します: ":mergeReleaseResources FAILED"。Adob​​e PhoneGap Build

解決してもらえますか?

私はそれが原因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) 
+1

ファイルを入れてみましたか? –

+0

私はこのファイルを持っていません –

+2

いくつかのpngイメージの同じ名前付きファイルを作成します。試してください –

答えて

0

塗料で、すべてのリソースの画像を開いて、 pngに「名前を付けて保存」し直してください。

あなたはおそらく、1つまたは複数の画像がpngとして直接保存するのではなく、bmpまたはjpgとしてそれらが壊れた画像であることがわかります!それらをすべてPNGに保存してください!

以前はデータファイル内にjpegとして保存していましたが、ファイル拡張子はpngとして呼び出されました。

それは私のために働いた。 yaを参照してください。

関連する問題