Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ModelCache.computeIfAbsent must not be null

After upgrading to Android Studio 3 Canary 4 I've got this error:

Gradle sync failed: Argument for @NotNull parameter 'key' of com/android/tools/idea/gradle/project/model/ide/android/ModelCache.computeIfAbsent must not be null

Anyone else has the same problem?

like image 200
Oriol Blanc Avatar asked Jun 24 '17 22:06

Oriol Blanc


2 Answers

update project level build.gradle file with

```

dependencies {
        classpath 'com.android.tools.build:gradle:2.3.3'
    }

```

and module build.gradle:

buildToolsVersion '25.0.3'

like image 109
Ernest Avatar answered Oct 13 '22 17:10

Ernest


classpath 'com.android.tools.build:gradle:4.2.0'

like image 1
miqt Avatar answered Oct 13 '22 18:10

miqt