Skip to content

getting error when running npx react-native run-android #3

@thtRajasthaniGuy

Description

@thtRajasthaniGuy

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

  1. install the library
  2. follow the documentation
  3. 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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions