Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Native - Run Android - Could not find common.jar (android.arch.core:common:1.0.0) [duplicate]

When run react-native run-android, I got this error :

* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApk'.
   > A problem occurred configuring project ':react-native-device-info'.
      > Could not find common.jar (android.arch.core:common:1.0.0).
        Searched in the following locations:
            https://jcenter.bintray.com/android/arch/core/common/1.0.0/common-1.0.0.jar

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
like image 228
Haytham Tomeh Avatar asked May 28 '18 13:05

Haytham Tomeh


1 Answers

I found this solution and works for me: add maven { url "https://maven.google.com" } in line 18 in file android/build.gradle

enter image description here

like image 186
emamut Avatar answered Oct 13 '22 20:10

emamut