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

坚强是说给别人听的谎言 提交于 2019-11-30 09:02:19

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

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

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.

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)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!