transistorsoft / react-native-background-fetch

Periodic callbacks in the background for both IOS and Android
MIT License
1.48k stars 193 forks source link

Failed to resolve: com.transistorsoft:tsbackgroundfetch:+ #87

Closed bugStatus closed 6 years ago

bugStatus commented 6 years ago

Your Environment

christocracy commented 6 years ago

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! WARNING: If you ignore this template, so too will your issue !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!-->

Your Environment

Expected Behavior

Actual Behavior

Steps to Reproduce

1. 2. 3. 4.

Context

Debug logs

sutefan1 commented 6 years ago

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.

jalieven commented 6 years ago

In your project, add this "repository" to your android/build.gradle: maven { url "$rootDir/../node_modules/react-native-background-fetch/android/libs" }

christocracy commented 6 years ago

@papsti7 Did you follow the Setup Instructions precisely?

sutefan1 commented 6 years ago

@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!

christocracy commented 6 years ago

The react-native link does not perform the entire setup. There is some manual setup, as documented.

rbHACKer commented 3 years ago

@jalieven Thank you it worked for me

christocracy commented 3 years ago

@rbHACKer that step is described in the Android Setup in the readme.

prakashreddyofferly commented 3 years ago

thanks @jalieven it worked for me

k2xl commented 1 year ago

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)

christocracy commented 1 year ago

Have you seen the new expo support in the readme?

https://github.com/transistorsoft/react-native-background-fetch#with-expo

k2xl commented 1 year ago

@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)

christocracy commented 1 year ago

What version expo are you using?

k2xl commented 1 year ago

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!