Closed bugStatus closed 6 years ago
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! WARNING: If you ignore this template, so too will your issue !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!-->
react-native -v
):1. 2. 3. 4.
same here Plugin version: 2.4.3 Platform: Android OS version: Android 8.1 Device manufacturer / model: Pixel 2 React Native version (react-native -v): 0.55.4 Plugin config: Don't know what to enter here.
Expected Behaviour:
implementation(group: 'com.transistorsoft', name:'tsbackgroundfetch', version: '+')
Modul should be found.
Actual Behaviour:
Build fails with this error message : Could not find any matches for com.transistorsoft:tsbackgroundfetch:+ as no versions of com.transistorsoft:tsbackgroundfetch are available.
Steps to Reproduce:
npm install react-native-background-fetch@2.4.3 --save
react-native link react-native-background-fetch
Context
I want to use react-native-background-task
which uses this module for the iOS side. So added the other project first, like described here.
My Setup: "react": "16.3.1", "react-native": "0.55.4", "react-native-navigation": "v2.0.1937" Node version 9.5.0 Android Studio version: 3.1.3
If you need any further information, don't hesitate to ask immediately.
In your project, add this "repository" to your android/build.gradle:
maven { url "$rootDir/../node_modules/react-native-background-fetch/android/libs" }
@papsti7 Did you follow the Setup Instructions precisely?
@christocracy I cleaned my project again and started with manual linking. This time everything worked out well. The rnpm linking maybe does not the full setup. I can't say which was the important missing piece of configuration!
The react-native link
does not perform the entire setup. There is some manual setup, as documented.
@jalieven Thank you it worked for me
@rbHACKer that step is described in the Android Setup in the readme.
thanks @jalieven it worked for me
In your project, add this "repository" to your android/build.gradle:
maven { url "$rootDir/../node_modules/react-native-background-fetch/android/libs" }
Thank you. Thank you. Thank you.
(For anyone googling / greping in 2023 for use with expo)
Have you seen the new expo support in the readme?
https://github.com/transistorsoft/react-native-background-fetch#with-expo
@christocracy I did. But none of that worked for me. Running prebuild only added
// @generated begin [react-native-background-fetch]-maven - expo prebuild (DO NOT MODIFY) sync-b86324ce2eb77b03cc8b69ba206ef8275cd006ff
maven { url "${project(":react-native-background-fetch").projectDir}/libs" }
// @generated end [react-native-background-fetch]-maven
But that simply didn't work. I added underneath
maven { url "$rootDir/../node_modules/react-native-background-fetch/android/libs" }
and it finally worked (well... didn't actually work but got me a new error)
What version expo are you using?
The latest... Started the project a couple of days ago. If you'd like to chat more directly to understand my use case let me know where happy to meet!
Your Environment
Plugin version:
Platform: Android
OS version:
Device manufacturer / model:
React Native version (
0.55
):Plugin config
Android: $ adb logcat -->