react-native-background-geolocation: Failed to resolve: com.transistorsoft:tslocationmanager:+ and Failed to resolve: com.transistorsoft:tsbackgroundfetch:+

Your Environment

  • Plugin version:^2.13.0
  • Platform: Android
  • OS version: 7.1.0
  • Device manufacturer / model:Samsung
  • React Native version (react-native -v0.56.0):
  • Plugin config

Expected Behavior

Actual Behavior

Steps to Reproduce

Context

Debug logs

  • What went wrong: Could not resolve all files for configuration ‘:app:debugCompileClasspath’.

Could not find any matches for com.transistorsoft:tslocationmanager:+ as no versions of com.transistorsoft:tslocationmanager are available. Searched in the following locations: file:/Users/iron/Library/Android/sdk/extras/m2repository/com/transistorsoft/tslocationmanager/maven-metadata.xml file:/Users/iron/Library/Android/sdk/extras/m2repository/com/transistorsoft/tslocationmanager/ file:/Users/iron/Library/Android/sdk/extras/google/m2repository/com/transistorsoft/tslocationmanager/maven-metadata.xml file:/Users/iron/Library/Android/sdk/extras/google/m2repository/com/transistorsoft/tslocationmanager/ file:/Users/iron/Library/Android/sdk/extras/android/m2repository/com/transistorsoft/tslocationmanager/maven-metadata.xml file:/Users/iron/Library/Android/sdk/extras/android/m2repository/com/transistorsoft/tslocationmanager/ file:/Users/iron/.m2/repository/com/transistorsoft/tslocationmanager/maven-metadata.xml file:/Users/iron/.m2/repository/com/transistorsoft/tslocationmanager/ https://jcenter.bintray.com/com/transistorsoft/tslocationmanager/maven-metadata.xml https://jcenter.bintray.com/com/transistorsoft/tslocationmanager/ file:/Users/iron/Documents/GIT/Mood/picnow-rn/node_modules/react-native/android/com/transistorsoft/tslocationmanager/maven-metadata.xml file:/Users/iron/Documents/GIT/Mood/picnow-rn/node_modules/react-native/android/com/transistorsoft/tslocationmanager/ https://maven.google.com/com/transistorsoft/tslocationmanager/maven-metadata.xml https://maven.google.com/com/transistorsoft/tslocationmanager/ Required by: project :app > project :react-native-background-geolocation Could not find any matches for com.transistorsoft:tsbackgroundfetch:+ as no versions of com.transistorsoft:tsbackgroundfetch are available. Searched in the following locations: file:/Users/iron/Library/Android/sdk/extras/m2repository/com/transistorsoft/tsbackgroundfetch/maven-metadata.xml file:/Users/iron/Library/Android/sdk/extras/m2repository/com/transistorsoft/tsbackgroundfetch/ file:/Users/iron/Library/Android/sdk/extras/google/m2repository/com/transistorsoft/tsbackgroundfetch/maven-metadata.xml file:/Users/iron/Library/Android/sdk/extras/google/m2repository/com/transistorsoft/tsbackgroundfetch/ file:/Users/iron/Library/Android/sdk/extras/android/m2repository/com/transistorsoft/tsbackgroundfetch/maven-metadata.xml file:/Users/iron/Library/Android/sdk/extras/android/m2repository/com/transistorsoft/tsbackgroundfetch/ file:/Users/iron/.m2/repository/com/transistorsoft/tsbackgroundfetch/maven-metadata.xml file:/Users/iron/.m2/repository/com/transistorsoft/tsbackgroundfetch/ https://jcenter.bintray.com/com/transistorsoft/tsbackgroundfetch/maven-metadata.xml https://jcenter.bintray.com/com/transistorsoft/tsbackgroundfetch/ file:/Users/iron/Documents/GIT/Mood/picnow-rn/node_modules/react-native/android/com/transistorsoft/tsbackgroundfetch/maven-metadata.xml file:/Users/iron/Documents/GIT/Mood/picnow-rn/node_modules/react-native/android/com/transistorsoft/tsbackgroundfetch/ https://maven.google.com/com/transistorsoft/tsbackgroundfetch/maven-metadata.xml https://maven.google.com/com/transistorsoft/tsbackgroundfetch/ Required by: project :app > project :react-native-background-fetch

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 19 (8 by maintainers)

Most upvoted comments

I just created a new app Foo. I have no issue.

$ react-native --version
react-native-cli: 2.0.1
react-native: 0.56.0
  1. Install plugin
$ react-native init Foo
$ cd Foo
$ npm install --save react-native-background-geolocation

$ react-native link react-native-background-geolocation
Scanning folders for symlinks in /Users/chris/Documents/workspace/react/background-geolocation/tmp/Foo1/node_modules (10ms)
rnpm-install info Linking react-native-background-geolocation ios dependency
rnpm-install info Platform 'ios' module react-native-background-geolocation has been successfully linked
rnpm-install info Linking react-native-background-geolocation android dependency
rnpm-install info Platform 'android' module react-native-background-geolocation has been successfully linked

$ react-native link react-native-background-fetch
Scanning folders for symlinks in /Users/chris/Documents/workspace/react/background-geolocation/tmp/Foo1/node_modules (16ms)
rnpm-install info Linking react-native-background-fetch ios dependency
rnpm-install info Platform 'ios' module react-native-background-fetch has been successfully linked
rnpm-install info Linking react-native-background-fetch android dependency
rnpm-install info Platform 'android' module react-native-background-fetch has been successfully linked

$ react-native link cocoa-lumberjack
Scanning folders for symlinks in /Users/chris/Documents/workspace/react/background-geolocation/tmp/Foo1/node_modules (15ms)
rnpm-install info Linking cocoa-lumberjack ios dependency
rnpm-install info Platform 'ios' module cocoa-lumberjack has been successfully linked
  1. Copy required maven urls to android/build.gradle
allprojects {
    repositories {
        .
        .
        .
        maven {
           url "$rootDir/../node_modules/react-native-background-geolocation/android/libs"
        }
        maven {
           url "$rootDir/../node_modules/react-native-background-fetch/android/libs"
        }
    }
}
  1. Run it:
$ react-native run-android
.
.
.
:app:assembleDebug
:app:installDebug
Installing APK 'app-debug.apk' on 'Pixel - 8.1.0' for app:debug
Installed on 1 device.

BUILD SUCCESSFUL

Total time: 29.005 secs
Running /Users/chris/Library/Android/sdk/platform-tools/adb -s FA6970312056 reverse tcp:8081 tcp:8081
Starting the app on FA6970312056 (/Users/chris/Library/Android/sdk/platform-tools/adb -s FA6970312056 shell am start -n com.foo1/com.foo1.MainActivity)...
Starting: Intent { cmp=com.foo1/.MainActivity }

The app boots successfully.

  • Extract foo1.tar.gz
  • Be sure to terminate your dev-server
$ tar xfvz foo1.tar.gz
$ cd Foo1
$ npm install
$ react-native run-android

foo1.tar.gz