У меня были проблемы с синхронизацией моего проекта в Android Studio относительно пакета «act-native-background-geolocation ».
Не удалось разрешить:: tslocationmanager:
Запуск ./gradlew: приложение: зависимости дает следующую ошибку:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration
':app:_debugApkCopy'.
> Could not find :tslocationmanager:.
Required by:
MyAppName:app:unspecified
MyAppName:app:unspecified > MyAppName:react-native-background-geolocation:unspecified
Я следую инструкциям по установке, изложенным здесь , но безрезультатно.
Соответствующий уровень проекта build.gradle:
allprojects {
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven {
url "$rootDir/../node_modules/react-native/android"
}
maven {
url 'https://maven.google.com'
}
maven {
url "$rootDir/../node_modules/react-native-background-geolocation/android/libs"
}
maven {
url "$rootDir/../node_modules/react-native-background-fetch/android/libs"
}
}
}
И соответствующий уровень приложения build.gradle:
dependencies {
compile "com.android.support:support-core-utils:28.0.0"
compile project(':react-native-background-geolocation')
compile fileTree(dir: "libs", include: ["*.jar"])
compile "com.android.support:appcompat-v7:26.1.0"
compile "com.facebook.react:react-native:+" // From node_modules
compile "me.leolin:ShortcutBadger:1.1.19@aar"
compile(name: 'tslocationmanager', ext: 'aar')
}