Gradle 4.1 issue on latest android studio 3.0.1

前端 未结 5 589
失恋的感觉
失恋的感觉 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:08

    you can add this statement to your gradle.properties file

    android.enableAapt2=false
    
    0 讨论(0)
  • 2020-12-09 08:25

    check your tools version, it should be 3.0.1

    buildscript {
        repositories {
            google()
            jcenter()
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:3.0.1'
        }
    }
    

    please note that google() repository is important. the newer plugin is posted there.

    0 讨论(0)
  • 2020-12-09 08:28

    Try adding google() in repositories.

    0 讨论(0)
  • 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()
        }
    }
    
    0 讨论(0)
  • 2020-12-09 08:34

    Try to reinstall the android version you are using with standard settings. use stable version instead for your computer

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