Could not find gradle 3.1
<p>The latest version of gradle is 3.1 <a href="https://docs.gradle.org/current/release-notes" rel="noreferrer">enter link description here</a></p>

<p>but Android Studio is only using 2.2?</p>

<p><a href="https://developer.android.com/studio/releases/gradle-plugin.html#updating-gradle" rel="noreferrer">enter link description here</a></p>

<p>This seems likes a huge discrepancy. My configuration:</p>

<pre><code>buildscript {
    repositories {
        jcenter()
        mavenCentral()
        maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:2.2'
        classpath 'de.felixschulze.gradle:gradle-hockeyapp-plugin:3.2'
        classpath 'com.michaelpardo:activeandroid:3.1.0-SNAPSHOT'
    }
}

allprojects {
    repositories {
        jcenter()
    }
}
</code></pre>

<p>When I try to find gradle 3.1, I get an error that it cannot find it. Same now with 2.2    > Could not find com.android.tools.build:gradle:2.2.</p>

<p>But gradle -v shows</p>

<pre><code>gradle -v

------------------------------------------------------------
Gradle 2.2
</code></pre>

<p>how do I resolve this?</p>