react-native-background-geolocation icon indicating copy to clipboard operation
react-native-background-geolocation copied to clipboard

Getting error running the project after installing the library

Open Alipatel05 opened this issue 3 years ago • 7 comments

I want to use this library to location updates in background so i created a project and installed the library i used the command it the library has to link it and also used react-native link command to link it but i am getting error while starting the app

Your Environment

  • Plugin version: latest
  • Platform: Android
  • OS version: Win10
  • Device manufacturer and model:
  • Running in Simulator: no
  • React Native version: 0.68.2

Context

At first it is showing failed to install the app as the device environment but then i ran another project which worked perfectly so its not issue of the device or the environment

Expected Behavior

Code should run and app should be installed on my device( i am using physical device not a simulator )

Actual Behavior

Instead it is giving me this error

  • What went wrong: Could not determine the dependencies of task ':app:mergeDebugAssets'.

Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'. Could not find com.intentfilter:android-permissions:0.1.7. Searched in the following locations:

  • file:/D:/Practice/React-Native/RNBackgroundGeolocation/node_modules/react-native/android/com/intentfilter/android-permissions/0.1.7/android-permissions-0.1.7.pom
  • file:/D:/Practice/React-Native/RNBackgroundGeolocation/node_modules/jsc-android/dist/com/intentfilter/android-permissions/0.1.7/android-permissions-0.1.7.pom
  • https://repo.maven.apache.org/maven2/com/intentfilter/android-permissions/0.1.7/android-permissions-0.1.7.pom
  • https://dl.google.com/dl/android/maven2/com/intentfilter/android-permissions/0.1.7/android-permissions-0.1.7.pom
  • https://www.jitpack.io/com/intentfilter/android-permissions/0.1.7/android-permissions-0.1.7.pom Required by: project :app > project :mauron85_react-native-background-geolocation > project :@mauron85_react-native-background-geolocation-common

I am not sure how to fix it i have tried everything but nothing seems to work i have also added location permission to AndroidManifest.xml file but still getting the error

Alipatel05 avatar Jun 13 '22 06:06 Alipatel05

add this to your android/build.gradle

`allprojects {

repositories {

   //add this line...
    maven {url 'https://jcenter.bintray.com'}

}

}`

enriqueFcoG avatar Jun 16 '22 20:06 enriqueFcoG

add this to your android/build.gradle

`allprojects {

repositories {

   //add this line...
    maven {url 'https://jcenter.bintray.com'}

}

}`

Not works for me. Any updates?

EmanueleAgo avatar Jul 09 '22 17:07 EmanueleAgo

any update after 360 days

huy-lv avatar Jul 04 '23 03:07 huy-lv

Any update?

vish2595 avatar Aug 23 '23 06:08 vish2595

any updates

acarkaan avatar Oct 29 '23 04:10 acarkaan