Reputation: 3353
I just started with React native.
I've follow this article: https://facebook.github.io/react-native/docs/getting-started.html
I run my application with command: react-native run-android but it show an exception:
FAILURE: Build failed with an exception.
What went wrong: A problem occurred configuring root project
Could not resolve all dependencies for co Could not resolve com.android.tools.bu Required by: :abcdefgg:unspecified Could not resolve com.android.tools Could not get resource 'https:// /build/gradle/1.3.1/gradle-1.3.1.pom'. Could not GET 'https://jcente /gradle/1.3.1/gradle-1.3.1.pom'. Connection to https://jcen
Try: Run with --stacktrace option to get the sta option to get more log output.
BUILD FAILED
How can i resolve this problem? I've read many articles here, Local Maven repository for Support Library has been installed in my computer.
Thanks very much!
Upvotes: 0
Views: 11705
Reputation: 11
In react-native this problem is due to flipper dependencies, it is solved by increasing its version to 0.105.0. (file: gradle.properties)
Upvotes: 0
Reputation: 537
I just solve this problem this morning. If you noticed there is a list of dependencies map defined in settings.gradle inside android folder. Here is what I did:
./gradlew installDebug --info
And then it will show a list of dependencies that android need. It also show which dependencies are not resolved.
In my case I'm lack of 'react-native-network-info' so all I need to do is npm install that package.
Maybe your situation will difference but I think this can help you.
Upvotes: 6