Check #468
@canerd7u just add this to your settings.gradle file:
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')
Exactly as described here:
https://github.com/mauron85/react-native-background-geolocation#android-setup
The automatic link is not working correctly for these dependencies.
It works for me!
@canerd7u just add this to your settings.gradle file:
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')Exactly as described here:
https://github.com/mauron85/react-native-background-geolocation#android-setupThe automatic link is not working correctly for these dependencies.
after that I get this error:
C:\PROJETOS\RA VIGILANCIA\ramobile\android\app\build\generated\rncli\src\main\java\com\facebook\react\PackageList.java:101: error: cannot find symbol
new BackgroundGeolocationPackage(),
^
symbol: class BackgroundGeolocationPackage
location: class PackageList
And after putting the package into the Package List
it give error promise
error: package com.marianhello.bgloc.react does not exist
import com.marianhello.bgloc.react.BackgroundGeolocationPackage;
Execution failed for task ':app:compileDebugJavaWithJavac'.
Compilation failed; see the compiler error output for details.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 13s
at makeError (C:\PROJETOS\RA VIGILANCIA\ramobile\node_modules\execa\index.js:174:9)
at Promise.all.then.arr (C:\PROJETOS\RA VIGILANCIA\ramobile\node_modules\execa\index.js:278:16)
at process._tickCallback (internal/process/next_tick.js:68:7)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed, because it has not had recent activity. If you believe this issue shouldn't be closed, please reopen or write down a comment requesting issue reopening with explanation why you think it's important. Thank you for your contributions.
Most helpful comment
@canerd7u just add this to your settings.gradle file:
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')Exactly as described here:
https://github.com/mauron85/react-native-background-geolocation#android-setup
The automatic link is not working correctly for these dependencies.