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.

Build error: Execution failed for task ':react-native-background-task:processReleaseResources'.

See original GitHub issue

Your Environment

  • Plugin version: react-native-background-fetch@2.4.3
  • Platform: iOS or Android: Android
  • OS version: Ubuntu 16.04
  • Device manufacturer / model: N/A
  • React Native version (react-native -v): react-native-cli: 2.0.1 react-native: 0.56.0
  • Plugin config
allprojects {
    repositories {
        mavenLocal()
        jcenter()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url "$rootDir/../node_modules/react-native/android"
        }
        maven {
            url 'https://maven.google.com/'
            name 'Google'
        }

        maven {
           url "$rootDir/../node_modules/react-native-background-fetch/android/libs"
        }
    }
}

Expected Behavior

It should compile

Actual Behavior

It does not compile

Steps to Reproduce

  1. cd AwesomeProject/
  2. npm i react-native-queue
  3. react-native link realm
  4. npm i react-native-background-task
  5. react-native link react-native-background-task
  6. npm i react-native-background-fetch
  7. react-native link react-native-background-fetch
  8. npm install
  9. react-native run-android

Context

Test this module

Debug logs

/home/rob/AwesomeProject/node_modules/react-native-background-task/android/build/intermediates/res/merged/release/values-v24/values-v24.xml:3: AAPT: Error retrieving parent for item: No resource found that matches the given name ‘android:TextAppearance.Material.Widget.Button.Borderless.Colored’.

/home/rob/AwesomeProject/node_modules/react-native-background-task/android/build/intermediates/res/merged/release/values-v24/values-v24.xml:4: AAPT: Error retrieving parent for item: No resource found that matches the given name ‘android:TextAppearance.Material.Widget.Button.Colored’.

/home/rob/AwesomeProject/node_modules/react-native-background-task/android/build/intermediates/res/merged/release/values-v26/values-v26.xml:15:21-54: AAPT: No resource found that matches the given name: attr ‘android:keyboardNavigationCluster’.

/home/rob/AwesomeProject/node_modules/react-native-background-task/android/build/intermediates/res/merged/release/values-v24/values-v24.xml:3: error: Error retrieving parent for item: No resource found that matches the given name ‘android:TextAppearance.Material.Widget.Button.Borderless.Colored’.

/home/rob/AwesomeProject/node_modules/react-native-background-task/android/build/intermediates/res/merged/release/values-v24/values-v24.xml:4: error: Error retrieving parent for item: No resource found that matches the given name ‘android:TextAppearance.Material.Widget.Button.Colored’.

/home/rob/AwesomeProject/node_modules/react-native-background-task/android/build/intermediates/res/merged/release/values-v26/values-v26.xml:15: error: Error: No resource found that matches the given name: attr ‘android:keyboardNavigationCluster’.

  • What went wrong: Execution failed for task ‘:react-native-background-task:processReleaseResources’.

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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:28 (15 by maintainers)

github_iconTop GitHub Comments

2reactions
christocracycommented, Oct 16, 2018

I used his site to initially develop the plugin back in iOS 7.

Oh: 5 year anniversary is tomorrow.

1reaction
christocracycommented, Oct 12, 2018

There is no difference in implementation. Background-task is just a wrapper for my same TSBackgroundFetch library.

You are mistaken

Read more comments on GitHub >

github_iconTop Results From Across the Web

Execution failed for task ':app:processReleaseResources'.
Task :app:processReleaseResources Failed to execute aapt com.android.ide.common.process. ... FAILURE: Build failed with an exception.
Read more >
React Native: Execution failed for task - Stack Overflow
I confronted with this error. Execution failed for task ':app:multiDexListDebug'. but He wrote in the continuation of my error that.
Read more >
Android studio | Execution failed for task - YouTube
Here, given trick to solve this type of error. Execution failed for task ':app:checkDebugAarMetadata'. Could not resolve all files for ...
Read more >
Error Execution failed for task ':app:mergeReleaseResources ...
Android : Error Execution failed for task ':app:mergeReleaseResources' building APK [ Beautify Your Computer ...
Read more >
Android Gradle Build Fails With "execution Failed For Task
Trying to make an Android build and a little unsure what exactly is going on with this error. Could use any suggestions anyone...
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