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

前端 未结 9 3297
太阳男子
太阳男子 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:04

    If you have several Javas in Ubuntu, you can

    sudo update-alternatives --config java
    sudo update-alternatives --config javac
    

    to select the Java 8 that Android and Gradle need.

提交回复
热议问题