react-native-background-geolocation: Could not find any matches for com.transistorsoft:tslocationmanager:+ as no versions of com.transistorsoft:tslocationmanager are available.
Your Environment
- Plugin version: 2.12.2
- Platform: Android
- React Native version (
react-native -v
):0.51.0
Expected Behavior
I installed react-native-background-geolocation
, linked it according to the documentation with react-native link and ran react-native run-android
. Builds successfully on Ios but build fails on Android.
Actual Behavior
* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApkCopy'.
> Could not find any matches for com.transistorsoft:tslocationmanager:+ as no versions of com.transistorsoft:tslocationmanager are available.
Required by:
project :app > project :react-native-background-geolocation
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Steps to Reproduce
- react-native unlink react-native-background-geolocation
- react-native uninstall react-native-background-geolocation
- yarn add react-native-background-geolocation
- react-native link react-native-background-geolocation
- react-native link react-native-background-fetch
Context
I was trying to set up react-native-background-geolocation
on an app.
Debug logs
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 24 (12 by maintainers)
Did you read the Setup docs for react-Native link?
There’s a required manual step with a required maven url
See Android Setup
Post your android/build.gradle
Yes.
hey @christocracy, read through the thread. I have an expired order, I did create and use the key last year. If I’m trying to use the key for another app, do I need to buy a new key?
@christocracy my
android/build.gradle
file.Create a hello world app and follow the setup instructions.