[Solved] Android Studio Error: Could not initialize class com.android.sdklib.repository.AndroidSdkHandler

The new android studio (4.2) no longer supports the old one


Now, some methods and classes will not be found.



Go to build.gradle and replace this classpath with the latest version. It is best to also get the latest version of gradle and gradle wrapper. for example:

dependencies {
    classpath 'com.android.tools.build:gradle:4.2.1'
    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files

Similar Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *