question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Execution failed for task ':app:processDebugResources'

See original GitHub issue

This error occurs when I run -

Cordova build android

Full Error -

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> 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.

* Get more help at https://help.gradle.org

BUILD FAILED in 10s
    at ChildProcess.whenDone (/Users/anujsingh/Documents/ionic/logs/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
    at ChildProcess.emit (events.js:182:13)
    at maybeClose (internal/child_process.js:961:16)
    at Socket.stream.socket.on (internal/child_process.js:380:11)
    at Socket.emit (events.js:182:13)
    at Pipe._handle.close [as _onclose] (net.js:595:12)
(node:637) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)

ionic info

cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.19.2
    ionic (Ionic CLI) : 3.20.0

global packages:

    cordova (Cordova CLI) : 8.0.0 

local packages:

    @ionic/app-scripts : 3.1.10
    Cordova Platforms  : android 7.0.0
    Ionic Framework    : ionic-angular 3.9.2

System:

    Android SDK Tools : 26.1.1
    Node              : v10.4.1
    npm               : 6.1.0 
    OS                : macOS High Sierra

Environment Variables:

    ANDROID_HOME : /Users/anujsingh/Library/Android/sdk

Misc:

    backend : pro

I tried every previous given solution in the forum

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

9reactions
anujsinghwdcommented, Jul 2, 2018

This resolves my issue :- Go to platforms/app/src/main/res/values/strings.xml and add these lines :

<string name="fb_app_id">Your Facebook APP ID</string>
<string name="fb_app_name">YOur Facebook App Name</string>
2reactions
imhoffdcommented, Jun 27, 2018

@anujsinghwd What exactly resolved the issue? Please post the solution so future readers can be helped as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Execution failed for task ':app:processDebugResources' even ...
I have installed the latest build tools- 23.0.3 but still the error persists. How do I fix this? Executing tasks: [:app:generateDebugSources, ...
Read more >
Fix "Execution failed app:processDebugResources" in ...
Fix “Execution failed app:processDebugResources” in Android Studio · Method 1: Change the version of buildTools · Method 2: Run Gradle with – ...
Read more >
Execution failed for task ':app:processDebugResources'. #548
Hi. When I'm trying to launch the app on my device or to build the apk I get this error. If I remove...
Read more >
Execution failed app:processDebugResources Android Studio
Android : Execution failed app : processDebugResources Android Studio [ Beautify Your Computer : https://www.hows.tech/p/recommended.html ] ...
Read more >
How To Fix - "app:processDebugResources FAILED ... - Gankrin
Execution failed for task ':app:processDebugResources'. Let's see the check-points which we can conduct to debug and fix this error.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found