android - ModelCache.computeIfAbsent 不能为空

标签 android android-studio-3.0

升级到 Android Studio 3 Canary 4 后出现此错误:

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

有没有人遇到同样的问题?

最佳答案

更新项目级build.gradle文件

```

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

```

和模块build.gradle:

buildToolsVersion '25.0.3'

关于android - ModelCache.computeIfAbsent 不能为空,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44741690/

相关文章:

android - 设置抽屉 View 宽度以在 DrawerLayout 中包裹内容

android - Android中的消息队列是什么?

Android MultiDex 应用程序在 Android Studio 3.0 上的低 API 上崩溃

string - kotlin 字符串中的两个并发字符串替换

Android Studio - 从默认目录应用程序打开 epub + pdf 文件(以编程方式)

android - 如果包名称与 Play 商店中已有的其他人相似,Play 商店是否会不允许您上传 Android 应用程序?

c# - 文件上传到 .net c# 服务器抛出 IOException

java - 除非启动应用程序,否则手机重启后 IntentService 不会自动启动

java - android.view.InflateException : Binary XML file line #38: Binary XML file line #38: Error inflating class fragment

Android Studio Spotify 错误:无法解析:com.spotify.sdk-player-24-noconnect-2.20b::