mauron85 / react-native-background-geolocation

Background and foreground geolocation plugin for React Native. Tracks user when app is running in background.
Apache License 2.0
1.34k stars 565 forks source link

hello there some problem with repository Jcenter this repasitory will be died in february, and if i remove this plugin gave this error #558

Open MrKhakimov opened 2 years ago

MrKhakimov commented 2 years ago
Rc85 commented 2 years ago

Having the same issue

aricab commented 2 years ago

SAME!, pleaseee, move to mavenCentral()

Rc85 commented 2 years ago

Current workaround:

  1. Navigate to node_modules/@mauron85/react-native-background-geolocation/android and node_modules/@mauron85/react-native-background-geolocation/android/common
  2. Open build.gradle in each one and change jcenter() to mavenCentral()
  3. Open node_modules/@mauron85/react-native-background-geolocation/android/common/VERSIONS.gradle and change the group value of libs permission to io.github.niishkarsh
ext {
    ...
    libs = [
        ...
        permissions: [group: 'io.github.nishkarsh', name: 'android-permissions', version: '0.1.7'],
        ...
    ]
}
hugows commented 2 years ago

Thanks Rc85 !

Warning to others, there is typo in the response above, on point 3: its nishkarsh, not niishkarsh! (The gray box is the correct spelling!)