title: Ionic Gradle failure "Could not find com.android.tools.build:gradle:2.2.3"
body: <p>I am attempting, in Windows 7, to compile my Ionic project Android platform using the Ionic CLI. This is something that previously worked, and now does not. The only thing that has changed is that I upgraded Android Studio. However, I am not compiling with Android studio, so I am surprised that I am getting Gradle errors. For:</p>
  
  <pre><code>$ ionic run android
  </code></pre>
  
  <p>The output is:</p>
  
  <pre><code>A problem occurred configuring root project 'android'.
  &gt; Could not resolve all dependencies for configuration ':_debugApk'.
     &gt; A problem occurred configuring project ':CordovaLib'.
        &gt; Could not resolve all dependencies for configuration ':CordovaLib:classpath'.
           &gt; Could not find com.android.tools.build:gradle:2.2.3.
             Searched in the following locations:
                 https://repo1.maven.org/maven2/com/android/tools/build/gradle/2.2.3/gradle-2.2.3.pom
                 https://repo1.maven.org/maven2/com/android/tools/build/gradle/2.2.3/gradle-2.2.3.jar
             Required by:
                 android:CordovaLib:unspecified
  </code></pre>
  
  <p>Though the output claims that I can gain additional error info with the --stacktrace and --debug flags, this is untrue.</p>
  
  <p>I have seen threads suggesting that the problem is that one or more of <code>mavenCentral()</code> or <code>jcenter()</code> are missing from the repositories list in the <code>build.gradle</code>. These are both present.</p>
  
  <p>I tried just throwing an HTTP GET at the addresses and it comes back 404. Is there somewhere else that I can direct Gradle to look for these files?</p>
  
  <p>Possibly the strangest thing is that the files that it claims it can't find, actually do get downloaded into the Gradle cache each time (if I clear them, they appear the next time I execute the command). They appear in:</p>
  
  <pre><code>~/.gradle/caches/modules-2/files-2.1/com.android.tools.build/gradle/2.2.3/88b4934c958cfe74ff5559c1a33707a562af59d2/gradle-2.2.3.pom
  </code></pre>
  
  <p>and</p>
  
  <pre><code>~/.gradle/caches/modules-2/files-2.1/com.android.tools.build/gradle/2.2.3/7b8f79621d95e3ce1e95c0852db14d9d7e1d1951/gradle-2.2.3.jar
  </code></pre>
  
  <p>Steps I've taken so far:</p>
  
  <ul>
  <li>upgrade Gradle</li>
  <li>clear both gradle and Maven repositories</li>
  <li>Try it <em>off</em> the company intranet with the <code>--no-proxy</code> flag on</li>
  </ul>
  
  <p>I'm not sure what the next troubleshooting step should be.</p>