Aapt error libpng error : read error

  • 1
  • Problem
  • Updated 4 years ago
I tried to build my first project, but i got this error from cli.
AAPT err(Facade for 29831537): libpng error: Read Error

FAILED

FAILURE:
Build failed with an exception.

* What went wrong:

Execution failed for task ':mergeDebugResources'.

>
Some file crunching failed, see logs for details

* 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: 4.375 secs

Error: Error code 1 for command: cmd with args: /s,/c,"E:\Phonegap\mencoba_perta
ma\platforms\android\gradlew cdvBuildDebug -b E:\Phonegap\mencoba_pertama\platfo
rms\android\build.gradle -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=tru
e"
Photo of Muhammad Ali Akbar Huzain

Muhammad Ali Akbar Huzain

  • 3 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 1
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
i got this error from cli.
You might be lost a bit. This is the forum for Phonegap Build, not for local builds using Phonegap/Cordova.

You might be better off asking your question at the Phonegap Google Group.
Photo of Muhammad Ali Akbar Huzain

Muhammad Ali Akbar Huzain

  • 3 Posts
  • 0 Reply Likes
Anyway could u help me what happen to my project? I tried to search the problem from google search. But i didnt get anything :(
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Well, if you insist on getting my guess (without you telling anyone on which OS you are developing, for which platform you are building and which Phonegap version you are using), I would suggest:
- Have you entered an incomplete "return .APK" command on your command line, or did you use lower case characters?
- Did you fail to press the red button in the right bottom of your IDE?
Photo of Muhammad Ali Akbar Huzain

Muhammad Ali Akbar Huzain

  • 3 Posts
  • 0 Reply Likes
I only use command "phonegap build android"
And then i got that error sir.
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Muhammad,
since you are using CLI (Command Line Interface) you should post your questions to the "Google Groups" forum for Phonegap/Cordova. Or the Adobe forum, which is listed on the home page of this forum.

Jesse