Could not find com.android.tools.build:aapt2:3.3.2-5309881.解决方法

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

    }
}

allprojects {
    repositories {
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

---------------------------------------------------------------------------------------------

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

    }
}

allprojects {
    repositories {
        jcenter()
        google()//加了这个
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

 

 

你可能感兴趣的:(Android,android,studio,安卓系统开发,性能优化)