Gradle 4.1 issue on latest android studio 3.0.1

前端 未结 5 602
失恋的感觉
失恋的感觉 2020-12-09 07:41

Though I have an updated android studio I am getting the following error but I cannot find gradle 4.1 in the gradle folder but when I check file -> project structure -> grad

5条回答
  •  半阙折子戏
    2020-12-09 08:30

    For my project is correct next construction in "build.gradle":

    buildscript {
        repositories {
            jcenter()
            google()
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:3.0.1'
    
    
            // NOTE: Do not place your application dependencies here; they belong
            // in the individual module build.gradle files
        }
    }
    
    allprojects {
        repositories {
            jcenter()
            google()
        }
    }
    

提交回复
热议问题