ModelCache.computeIfAbsent must not be null

After upgrading to Android Studio 3 Canary 4, I have this error:

Gradle Sync error: argument for @NotNull key parameter com / Android / tools / idea / gradle / project / model / ide / android / ModelCache.computeIfAbsent must not be null

Does anyone else have the same problem?

+5
source share
3 answers

Update build.gradle project build.gradle with

`` ``

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

`` ``

and build.gradle module:

buildToolsVersion '25.0.3'

+10
source

If anyone had this problem:

This error occurs only in Preview Canary versions, if you return to the stable version 2.X, everything is fine

0
source

Remember to replace the gradle build version with "+" in the gradle project file dependencies, as follows -

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

This works for me.

0
source

Source: https://habr.com/ru/post/1269184/


All Articles