mauron85 / react-native-background-geolocation-example

Example app of react-native-mauron85-background-geolocation component.
120 stars 45 forks source link

Android x not work with this module. #23

Closed cioletti closed 4 years ago

cioletti commented 4 years ago

view please image run

Captura de Tela 2020-06-05 às 15 27 41
cioletti commented 4 years ago

Solution found it

put manual in android/settings.gradle include ':@mauron85_react-native-background-geolocation-common' project(':@mauron85_react-native-background-geolocation-common').projectDir = new File(rootProject.projectDir, '../node_modules/@mauron85/react-native-background-geolocation/android/common') include ':@mauron85_react-native-background-geolocation' project(':@mauron85_react-native-background-geolocation').projectDir = new File(rootProject.projectDir, '../node_modules/@mauron85/react-native-background-geolocation/android/lib')

and put in app/build.gradle dependencies { ............ implementation 'com.google.android.gms:play-services-gcm:15.0.1' implementation 'com.google.android.gms:play-services-location:15.0.1' ................ }