Execution failed for task ':react-native-background-timer:verifyReleaseResources' - while assembling for Release. Backgroundtimer doesn't get executed while app in on background.
See original GitHub issueMy problem is twofold.
-
In debug version - Building works propely but not executed when app is on background but only when it is on foreground.
-
In release version - While building it throws the following error.
/home/impact/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/b0014319950794f5c3e0a3fe67d28ce3/res/values-v26/values-v26.xml:9:5-12:13: AAPT: resource android:attr/colorError not found.
/home/impact/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/b0014319950794f5c3e0a3fe67d28ce3/res/values-v26/values-v26.xml:13:5-16:13: AAPT: resource android:attr/colorError not found.
/home/impact/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/b0014319950794f5c3e0a3fe67d28ce3/res/values-v26/values-v26.xml:17:5-93: AAPT: style attribute ‘android:attr/keyboardNavigationCluster’ not found.
/home/impact/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/b0014319950794f5c3e0a3fe67d28ce3/res/values/values.xml:251:5-69: AAPT: resource android:attr/fontStyle not found.
/home/impact/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/b0014319950794f5c3e0a3fe67d28ce3/res/values/values.xml:251:5-69: AAPT: resource android:attr/font not found.
/home/impact/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/b0014319950794f5c3e0a3fe67d28ce3/res/values/values.xml:251:5-69: AAPT: resource android:attr/fontWeight not found.
error: resource android:style/TextAppearance.Material.Widget.Button.Borderless.Colored not found. error: resource android:style/TextAppearance.Material.Widget.Button.Colored not found. /home/impact/portfolio/employee-tracker/node_modules/react-native-background-timer/android/build/intermediates/res/merged/release/values-v26/values-v26.xml:7: error: resource android:attr/colorError not found. /home/impact/portfolio/employee-tracker/node_modules/react-native-background-timer/android/build/intermediates/res/merged/release/values-v26/values-v26.xml:11: error: resource android:attr/colorError not found. /home/impact/portfolio/employee-tracker/node_modules/react-native-background-timer/android/build/intermediates/res/merged/release/values-v26/values-v26.xml:15: error: style attribute ‘android:attr/keyboardNavigationCluster’ not found. /home/impact/portfolio/employee-tracker/node_modules/react-native-background-timer/android/build/intermediates/res/merged/release/values/values.xml:226: error: resource android:attr/fontStyle not found. /home/impact/portfolio/employee-tracker/node_modules/react-native-background-timer/android/build/intermediates/res/merged/release/values/values.xml:226: error: resource android:attr/font not found. /home/impact/portfolio/employee-tracker/node_modules/react-native-background-timer/android/build/intermediates/res/merged/release/values/values.xml:226: error: resource android:attr/fontWeight not found. error: failed linking references.
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ‘:react-native-background-timer:verifyReleaseResources’.
com.android.ide.common.process.ProcessException: Failed to execute aapt
Step I’ve Tried.
Running the command react-native link
I’ve changed the android/app/build.gradle accordingly
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:10 (1 by maintainers)
This problem is back… I am using
2.1.1
Installing 2.1.0-alpha.7 version resolved the issue
npm i --save react-native-background-timer@2.1.0-alpha.7