title: Failed to resolve dependencies in the react native project
body: <p>My react native project is trying to resolve dependencies as locally. But it can't find anything and make these errors:</p>
  <blockquote>
  <p>Could not find javax.inject:javax.inject:1.</p>
  <p>Searched in the following locations:</p>
  <p>file:/C:/Users/oop/AppData/Local/Android/android-sdk/extras
  /m2repository/javax/inject/javax.inject/1/javax.inject-1.pom</p>
  <p>file:/C:/Users/oop/AppData/Local/Android/android-sdk/extras
  /m2repository/javax/inject/javax.inject/1/javax.inject-1.jar</p>
  <p>file:/C:/Users/oop/AppData/Local/Android/android-sdk/extras/google
  /m2repository/javax/inject/javax.inject/1/javax.inject-1.pom</p>
  <p>file:/C:/Users/oop/AppData/Local/Android/android-sdk/extras/google
  /m2repository/javax/inject/javax.inject/1/javax.inject-1.jar</p>
  <p>file:/C:/Users/oop/AppData/Local/Android/android-sdk/extras/android
  /m2repository/javax/inject/javax.inject/1/javax.inject-1.pom</p>
  <p>file:/C:/Users/oop/AppData/Local/Android/android-sdk/extras/android
  /m2repository/javax/inject/javax.inject/1/javax.inject-1.jar</p>
  <p>file:/C:/Users/oop/.m2/repository/javax/inject/javax.inject
  /1/javax.inject-1.pom</p>
  <p>file:/C:/Users/oop/.m2/repository/javax/inject/javax.inject
  /1/javax.inject-1.jar</p>
  <p>file:/D:/react/Barbari/node_modules/react-native/android/javax/inject
  /javax.inject/1/javax.inject-1.pom</p>
  <p>file:/D:/react/Barbari/node_modules/react-native/android/javax/inject
  /javax.inject/1/javax.inject-1.jar</p>
  <p><a href="https://dl.google.com/dl/android/maven2/javax/inject/javax.inject" rel="nofollow noreferrer">https://dl.google.com/dl/android/maven2/javax/inject/javax.inject</a>
  /1/javax.inject-1.pom</p>
  <p><a href="https://dl.google.com/dl/android/maven2/javax/inject/javax.inject" rel="nofollow noreferrer">https://dl.google.com/dl/android/maven2/javax/inject/javax.inject</a>
  /1/javax.inject-1.jar</p>
  <p>Required by:</p>
  <p>project :app &gt; com.facebook.react:react-native:0.57.3</p>
  </blockquote>
  <p>I think the gradle searches first the local maven directory and it can't find the files.
  I'd like to know is there any way to fix this problem?</p>