React-native-navigation: Android Run Error

Created on 19 Jan 2019  ·  16Comments  ·  Source: wix/react-native-navigation

Hi,
I have added react native package but iam facing below errors. can any one help to fix these errors.

dependencies": {
"react": "16.6.3",
"react-native": "0.57.8",
"react-native-elements": "^0.19.1",
"react-native-gesture-handler": "^1.0.12",
"react-native-navigation": "^2.7.1",
"react-native-vector-icons": "^6.1.0",
"react-navigation": "^3.0.9"
},

  • What went wrong:
    Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
    > Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
    > Could not resolve project :react-native-navigation.
    Required by:
    project :app
    > Unable to find a matching configuration of project :react-native-navigation: None of the consumable configurations have attributes.
questiostack overflow

All 16 comments

Same here, bump!

Having same problem here.

Make sure you have followed the guide in installing on Android. Seems like you have missed a step somewhere and did not include react-native-navigation in your gradle files.

Having same problem here.

In my case a little '/' at the end in android/settings.gradle made the difference:
slash

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.

Same problem here!!!
I'm sure I have followed the guide in installing on Android in several times.
Please, help me....

If you could provide a little more info, I could help out.

I can't build in android studio.

Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve project :react-native-navigation. |  
Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve project :react-native-navigation. |  
Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve project :react-native-navigation. |  
Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve project :react-native-navigation. |  
Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve project :react-native-navigation. |  

  • package.json in my project
    "dependencies": {
    "react": "16.6.3",
    "react-native": "0.58.5",
    "react-native-navigation": "^2.12.0"
    },

  • android studio gradleVersion : 4.7
    (distributionUrl=https\://services.gradle.org/distributions/gradle-4.7-all.zip)

  • android build.gradle
    buildscript {
    ext {
    buildToolsVersion = "28.0.2"
    minSdkVersion = 19
    compileSdkVersion = 28
    targetSdkVersion = 27
    supportLibVersion = "28.0.0"
    }
    repositories {
    google()
    mavenLocal()
    mavenCentral()
    jcenter()
    }
    dependencies {
    classpath 'com.android.tools.build:gradle:3.2.1'
    }
    }

Can you create a new react-native init project and try integrate RNN in there and share the project?

I just created new react-native init project and installed until guide 4.
(https://wix.github.io/react-native-navigation/#/docs/Installing)

I can't build after '4 Update project dependencies in android/app/build.gradle.'

It's my source.
https://github.com/songahlee/RNN_test.git

I've checked out your source code, but you haven't finished the whole process from step 5 - 8 which are the essential part of the installation process.

Please check again.
I finished installation process except optional part.
but the error is same.

From the brief look, you are missing step 7 and 8. Please refer to the doc.

Oh.... I'm sorry. It's work.

Closing, Thanks a lot @jinshin1013 🙇

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yayanartha picture yayanartha  ·  3Comments

nbolender picture nbolender  ·  3Comments

charlesluo2014 picture charlesluo2014  ·  3Comments

EliSadaka picture EliSadaka  ·  3Comments

kiroukou picture kiroukou  ·  3Comments