forked from hariks789/react-native-background-geolocation
-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
when running the react-native command it's through error, did clean gradle.
Your Environment
- Plugin version:0.7.7
- Platform: Android
- OS version: 11
- Device manufacturer and model: Realme x7 pro
- Running in Simulator: No
- React Native version: 0.70.6
- Plugin configuration options:
- Link to your project: Yes
Context
its through error
Expected Behavior
its should run the app.
Actual Behavior
error from terminal:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
Could not find ::.
Required by:
project :app
Steps to Reproduce
- install the library
- follow the documentation
- run the npx react-native run-android
Setting.gradle file code
rootProject.name = 'project name'
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle");
applyNativeModulesSettingsGradle(settings)
include ':app'
includeBuild('../node_modules/react-native-gradle-plugin')
include ':@mak12_react-native-background-geolocation-common'
project(':@mak12_react-native-background-geolocation-common').projectDir = new File(rootProject.projectDir,
'../node_modules/@mak12/react-native-background-geolocation/android/common')
include ':@mak12_react-native-background-geolocation'
project(':@mak12_react-native-background-geolocation').projectDir = new File(rootProject.projectDir,
'../node_modules/@mak12/react-native-background-geolocation/android/lib')
if (settings.hasProperty("newArchEnabled") && settings.newArchEnabled == "true") {
include(":ReactAndroid")
project(":ReactAndroid").projectDir = file('../node_modules/react-native/ReactAndroid')
include(":ReactAndroid:hermes-engine")
project(":ReactAndroid:hermes-engine").projectDir = file('../node_modules/react-native/ReactAndroid/hermes-
engine')
}
build.gradle file code
dependencies {
implementation (':@mak12_react-native-background-geolocation')
}
Metadata
Metadata
Assignees
Labels
No labels