Error:Could not find com.android.tools.build:gradle:3.3. Issue raise after upgrading gradle version for splunk:mint-android-sdk

后端 未结 9 881
-上瘾入骨i
-上瘾入骨i 2020-12-29 05:42

My App was working fine, then i add com.splunk:mint-android-sdk, which required upper version of gradle, so i upgrade the gradle to from 2.1 to 3.3. after that i am facing i

相关标签:
9条回答
  • 2020-12-29 06:02

    This version of the gradle plugin doesn't exist.

    classpath 'com.android.tools.build:gradle:3.3'
    

    use the latest beta release:

    classpath 'com.android.tools.build:gradle:3.0.0-beta6'
    

    Instead if you would like to update gradle, update the distributionUrl in gradle-wrapper.properties.

    0 讨论(0)
  • 2020-12-29 06:06

    I updated following line of

    code: classpath 'com.android.tools.build:gradle:2.3.3' 
    classpath 'com.google.gms:google-services:3.0.0' 
    

    and distributionUrl in gradle-wrapper.properties 'distributionUrl=https\://services.gradle.org/distributions/‌​gradle-3.3-all.zip'

    and MOST IMPORTANT is FILE>SETTING>Build,Execution,Deployment>Build Tools>Gradles: Project-level settings: checked :Use default gradle wrapper(recommended)

    0 讨论(0)
  • 2020-12-29 06:07

    Go to the gradle wrapper properties and see if the gradle version in the distribution url matches the one in the build.gradle classpath's

    0 讨论(0)
  • 2020-12-29 06:08

    In my case, I add maven { url 'https://maven.google.com' } at top of build script.

    0 讨论(0)
  • 2020-12-29 06:13

    Inside buildscript add google() then open terminal write command-- gradlew build and press enter.

    repositories {
        google()
        jcenter()
    }
    

    NB: Make sure you are in active network connection

    0 讨论(0)
  • 2020-12-29 06:14

    You changed Gradle plugin version, not Gradle version

    Set your Gradle Plugin version to 2.3
    Then open gradle/wrapper/gradle-wrapper.properties and change Gradle version at line distributionUrl

    0 讨论(0)
提交回复
热议问题