Error:Could not initialize class com.android.sdklib.repositoryv2.AndroidSdkHandler

前端 未结 9 3303
太阳男子
太阳男子 2020-12-10 10:35

I want to build this project with Android Studio at launching, but take a error. Stacktrace is here

9条回答
  •  一生所求
    2020-12-10 11:07

    this because your classpath build tools in build.gradle root project is deprecated update like this for new android studio 3.2.0

    buildscript {
    dependencies {
        classpath 'com.android.tools.build:gradle:3.2.0-alpha14'
    }
    

    and after that update your minimum sdk and build tools to latest and no problem again

提交回复
热议问题