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 ':react-native-background-timer:verifyReleaseResources' - while assembling for Release. Backgroundtimer doesn't get executed while app in on background.

See original GitHub issue

My problem is twofold.

  1. In debug version - Building works propely but not executed when app is on background but only when it is on foreground.

  2. 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:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
mjm918commented, Jun 12, 2019

This problem is back… I am using 2.1.1

4reactions
todengcommented, Nov 13, 2018

Installing 2.1.0-alpha.7 version resolved the issue

npm i --save react-native-background-timer@2.1.0-alpha.7

Read more comments on GitHub >

github_iconTop Results From Across the Web

Execution failed for task ':react-native-background-job ...
After androidx , android.support has obsoleted , use androidx while importing instead off android.support in given node module path .
Read more >
Timer im background Task not possible? - Apple Developer
I have an App which should do something in background. So I wrote some code in AppDelegate: func applicationDidEnterBackground(_ application: UIApplication) ...
Read more >
execution failed for task ':amazon-cognito-identity-js ... - You.com
When trying to run my react native app on android, I get this error: FAILURE: Build failed with an exception. What went wrong:...
Read more >
react-native-background-actions - npm
Schedule a background job that will run your JavaScript when your ... Before building your JS task, make sure to read all the...
Read more >
Keeping application alive in background - Help
Hi, I am using react-native-webrtc plugin to make a conference app and it works pretty good in foreground (when the app is active)...
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