Problem with ionic cordova run android

Help!

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:CordovaLib:processDebugResources’.

com.android.ide.common.process.ProcessException: Failed to execute aapt

  • 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.074 secs
Error: /home/eduardo/ProjectDev/public_ionic/ponto/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:CordovaLib:processDebugResources’.

com.android.ide.common.process.ProcessException: Failed to execute aapt

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

[ERROR] An error occurred while running cordova run android (exit code 1).

cli packages: (/usr/lib/node_modules)

@ionic/cli-plugin-proxy : 1.5.7
@ionic/cli-utils        : 1.19.1
ionic (Ionic CLI)       : 3.19.1

global packages:

cordova (Cordova CLI) : 7.1.0

local packages:

@ionic/app-scripts : 3.1.6
Cordova Platforms  : android 6.3.0
Ionic Framework    : ionic-angular 3.9.2

System:

Android SDK Tools : 26.1.1
Node              : v8.9.4
npm               : 5.6.0
OS                : Linux 4.13

Environment Variables:

ANDROID_HOME     : /home/eduardo/Android/Sdk
HTTP_PROXY       : not set
http_proxy       : http://172.19.10.1:3128
HTTPS_PROXY      : not set
https_proxy      : http://172.19.10.1:3128
IONIC_HTTP_PROXY : not set
PROXY            : not set
proxy            : not set

Misc:

backend : pro

Hi, @gceduvieira

In your Project :

Go in to the ./platforms/android/ folder and run below command :

$ ./gradlew --info build clean

Thanks

Please edit your post, it is not very readable at the moment.
Use the </> button above the input field to format your code, command line output or error message (select the text first, then click the button or wrap it in ``` manually). Check the preview if it looks better. This will make sure your text is readable and if it recognizes the programming language it also automatically adds code syntax highlighting. Thanks.

All input files are considered out-of-date for incremental task ‘:CordovaLib:processDebugResources’.
Starting process ‘command ‘/home/eduardo/Android/Sdk/build-tools/24.0.3/aapt’’. Working directory: /home/eduardo/ProjectDev/public_ionic/ponto/platforms/android/CordovaLib Command: /home/eduardo/Android/Sdk/build-tools/24.0.3/aapt package -f --no-crunch -I /home/eduardo/Android/Sdk/platforms/android-26/android.jar -M /home/eduardo/ProjectDev/public_ionic/ponto/platforms/android/CordovaLib/build/intermediates/manifests/aapt/debug/AndroidManifest.xml -S /home/eduardo/ProjectDev/public_ionic/ponto/platforms/android/CordovaLib/build/intermediates/bundles/debug/res -m -J /home/eduardo/ProjectDev/public_ionic/ponto/platforms/android/CordovaLib/build/generated/source/r/debug --debug-mode --custom-package org.apache.cordova --non-constant-id -0 apk --output-text-symbols /home/eduardo/ProjectDev/public_ionic/ponto/platforms/android/CordovaLib/build/intermediates/bundles/debug --no-version-vectors
Successfully started process ‘command ‘/home/eduardo/Android/Sdk/build-tools/24.0.3/aapt’’
:CordovaLib:processDebugResources FAILED
:CordovaLib:processDebugResources (Thread[Daemon worker,5,main]) completed. Took 0.198 secs.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:CordovaLib:processDebugResources’.

com.android.ide.common.process.ProcessException: Failed to execute aapt

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

BUILD FAILED

Total time: 7.057 secs
Stopped 0 worker daemon(s).
Received result Failure[value=org.gradle.initialization.ReportedException: org.gradle.internal.exceptions.LocationAwareException: Execution failed for task ‘:CordovaLib:processDebugResources’.] from daemon DaemonInfo{pid=18981, address=[2eff4153-3098-4781-84dd-8882bd5ccba6 port:39729, addresses:[/0:0:0:0:0:0:0:1, /127.0.0.1]], state=Busy, lastBusy=1516890028801, context=DefaultDaemonContext[uid=f87a7fab-bc7e-428d-9cc1-d6b719ab6a21,javaHome=/usr/lib/jvm/java-8-oracle,daemonRegistryDir=/home/eduardo/.gradle/daemon,pid=18981,idleTimeout=10800000,daemonOpts=-XX:MaxPermSize=256m,-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=UTF-8,-Duser.country=US,-Duser.language=en,-Duser.variant]} (build should be done).