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

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

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 28 (15 by maintainers)

Most upvoted comments

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

Oh: 5 year anniversary is tomorrow.

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

You are mistaken

Thanks for the BTC, my first ever.