Dimitri Williams
Dimitri Williams

Reputation: 732

Android studio compiler error build tools

I receive the following error message

Could not initialize class com.android.sdklib.repository.AndroidSdkHandler

How do I solve this error message, I honestly have no idea how to solve this error message ?

Upvotes: 0

Views: 225

Answers (1)

Kleysley
Kleysley

Reputation: 573

Maybe update the following code in the build.gradle(project) file?

buildscript {
    repositories {
        [some other things here...]
    }
    dependencies {
        [.... some other things here]
        classpath 'com.android.tools.build:gradle:3.1.2'
    }
}

Upvotes: 1

Related Questions