title: Unable to resolve dependency for '...': Could not resolve project :react-native-navigation
body: <h1>Issue Description</h1>
  
  <p>After carefully following the instructions in <a href="https://wix.github.io/react-native-navigation/#/docs/Installing" rel="nofollow noreferrer">https://wix.github.io/react-native-navigation/#/docs/Installing</a>, I am getting these errors after completing step 4 for Android:</p>
  
  <pre><code>ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve project :react-native-navigation.
  Show Details
  Affected Modules: app
  
  ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve project :react-native-navigation.
  Show Details
  Affected Modules: app
  
  ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve project :react-native-navigation.
  Show Details
  Affected Modules: app
  
  WARNING: API 'variant.getMergeAssets()' is obsolete and has been replaced with 'variant.getMergeAssetsProvider()'.
  It will be removed at the end of 2019.
  For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
  To determine what is calling variant.getMergeAssets(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace.
  Affected Modules: app
  </code></pre>
  
  <h1>What I've tried</h1>
  
  <ul>
  <li>Invalidate Cache/Restart</li>
  <li><p>Update dependencies in <code>build.gradle file</code></p>
  
  <pre><code>dependencies {
    classpath 'com.android.tools.build:gradle:3.1.4'
    classpath 'com.google.gms:google-services:4.2.0'
  }
  </code></pre></li>
  <li><p>Disable experimental feature for Gradle <code>Only sync the active variant</code>, which leads to two more errors:</p>
  
  <pre><code>ERROR: Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve project :react-native-navigation.
  Show Details
  Affected Modules: app
  
  
  ERROR: Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve project :react-native-navigation.
  Show Details
  Affected Modules: app
  </code></pre></li>
  <li><p>Preferences > Appearance &amp; Behavior > System Settings > HTTP Proxy > No Proxy</p></li>
  <li><p>Move <code>google()</code> to the top</p>
  
  <pre><code>buildscript{
    ext {...}
    repositories {
      google()
      mavenLocal()
      ...
    }
    ...
  }
  allprojects {
    repositories {
      google()
      ...
    }
  }
  </code></pre></li>
  <li><p>Update the gradle distributionUrl to 5.1.1-all and remove task wrapper</p></li>
  <li>Remove .gradle, referenced <a href="https://stackoverflow.com/questions/29808199/error-running-android-gradle-project-sync-failed-please-fix-your-project-and-t">here</a>
  
  <ol>
  <li>Invalidate caches / restart</li>
  <li>Shutdown Android Studio</li>
  <li>Remove .gradle folder</li>
  <li>Restart Android Studio</li>
  </ol></li>
  <li><p>Set proxy both http and https in gradle.properties</p>
  
  <pre><code>systemProp.http.proxyHost=127.0.0.1
  systemProp.https.proxyPort=12345
  org.gradle.jvmargs=-Xmx1234m
  systemProp.https.proxyHost=127.0.0.1
  systemProp.http.proxyPort=12345
  </code></pre></li>
  <li>Open an <a href="https://github.com/wix/react-native-navigation/issues/4595" rel="nofollow noreferrer">issue</a> on wix/react-native-navigation</li>
  <li>Exit Android Studio, delete *.iml file and .idea directory, and rebuild</li>
  <li>Disable Instant Run</li>
  </ul>
  
  <h1>Steps to Reproduce</h1>
  
  <h2>Step 1</h2>
  
  <p>Add the following</p>
  
  <pre><code># android/settings.gradle
  
  include ':react-native-navigation'
  project(':react-native-navigation').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-navigation/lib/android/app/')
  </code></pre>
  
  <h2>Step 2</h2>
  
  <p>Make sure you're using the new gradle plugin</p>
  
  <pre><code># android/gradle/wrapper/gradle-wrapper.properties
  
  distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip
  </code></pre>
  
  <h2>Step 3</h2>
  
  <p>Update <code>android/build.gradle</code></p>
  
  <pre><code># android/build.gradle
  
  buildscript {
      ext {
          buildToolsVersion = "27.0.3"
          minSdkVersion = 19
          compileSdkVersion = 27
          targetSdkVersion = 26
          supportLibVersion = "28.0.0"
      }
      repositories {
          google()
          mavenLocal()
          mavenCentral()
          jcenter()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:3.3.0'
      }
  }
  allprojects {
      repositories {
          google()
          mavenCentral()
          mavenLocal()
          jcenter()
          maven {
              // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
              url "$rootDir/../node_modules/react-native/android"
          }
          maven { url 'https://jitpack.io' }
      }
  }
  
  task wrapper(type: Wrapper) {
      gradleVersion = '4.4'
      distributionUrl = distributionUrl.replace("bin", "all")
  }
  </code></pre>
  
  <h2>Step 4</h2>
  
  <p>Update project dependencies</p>
  
  <pre><code># android/app/build.gradle
  
  android {
      compileSdkVersion rootProject.ext.compileSdkVersion
      defaultConfig {...}
      compileOptions {
          sourceCompatibility JavaVersion.VERSION_1_8
          targetCompatibility JavaVersion.VERSION_1_8
      }
      ...
  }
  
  dependencies {
      implementation fileTree(dir: "libs", include: ["*.jar"])
      implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
      implementation "com.facebook.react:react-native:+"  // From node_modules
      implementation project(':react-native-navigation')
  }
  </code></pre>
  
  <p>Sync project as necessary confirming that after step 4 the errors are produced</p>
  
  <h1>Environment</h1>
  
  <ul>
  <li>React Native Navigation version: 2.7.0</li>
  <li>React Native version: 0.57.8</li>
  <li>Platform(s) (iOS, Android, or both?): Android</li>
  <li>Android Studio 3.3</li>
  <li>Gradle 4.10.1</li>
  <li>Android Gradle plugin 3.3.0</li>
  <li>Android SDK Build Tools 28.0.3</li>
  <li>macOS Mojave 10.14.2</li>
  <li>Java 8 (brew cask)</li>
  </ul>