Cordova Android Build Failed Task

I run the cordova build android to build my Ionic App and the following error occured:


:mergeArmv7DebugResources
:processArmv7DebugManifest
:processArmv7DebugResources FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processArmv7DebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.
xecException: Process 'command 'C:\android\sdk\build-tools\23.0.3\aapt.exe'' fi
ished with non-zero exit value 1

* 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: 14.198 secs
Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processArmv7DebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.
xecException: Process 'command 'C:\android\sdk\build-tools\23.0.3\aapt.exe'' fi
ished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.

---- MY SETTINGS ----

Windows 7 with all PATH variables set ;)
Cordova Ver: 7.0.1
Ionic Ver: 3.6.0 (but compiling a Ionic 1 project)
AndroidSDK: 22 (5.2.2)

I also tried:

  • Remove and reinstall Cordova
  • Remove and reinstall Ionic
  • Remove and reinstall Android Platform (23, 21, 22 - original)
  • Check Cordova plugin list for other incompatibilities.
  • Change my config.xml with

However, the changes I make to change the SDK have no effect.

3 days ago I updated (globally) my Ionic1 to Ionic 3.5, which force me a few adaptations so I can build my apps again.

But can’t pass this error… Any help?

Can you build a newly created project via ionic start blank blank?

Hi Sujan, I just found my problem. Don’t know why cause trouble, but found the source.

I had inside my img folder ( www/img ) a copied file going by this name:

Logo.png
Logo - Cópia.png (this is portuguese, my Windows is pt-BR)

I tried a lot of things. But just removed this file, the app compiled. Put it back…Problems.
I repeat to be sure, and that’s it…

Thanks for your response :smiley: