android - 使用 Android Studio 3.2 Canary 17 时出现 kotlin-android 错误

标签 android android-studio android-studio-3.2

刚刚更新到 Android Studio 3.2 Canary 17,现在出现以下错误:

A problem occurred configuring project ':some_module`. 'kotlin-android' expects one of the Android Gradle plugins to be applied to the project:

    * android
    * com.android.application
    * android-library
    * com.android.library
    * com.android.test
    * com.android.feature
    * com.android.dynamic-feature

该模块的 build.gradle 包括:

apply plugin: 'com.android.feature'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'

该项目包括由com.android.applicationcom.android.featurecom.android.instantapp混合组成的几个模块>

最佳答案

我认为错误来自您的免安装应用模块。对于动态功能模块,我也遇到了同样的情况。我开了一个问题here .

如果您查看日志,它只会影响即时/动态功能模块:

Caused by: org.gradle.api.plugins.InvalidPluginException: 'kotlin-android' expects one of the Android Gradle plugins to be applied to the project: * android * com.android.application * android-library * com.android.library * com.android.test * com.android.feature * com.android.dynamic-feature <-------

从你的日志中:

* android * com.android.application * android-library * com.android.library * com.android.test * com.android.feature * com.android.dynamic-feature <-----

我想他们很快就会修好它 :-) 因为这是个大问题,他。

关于android - 使用 Android Studio 3.2 Canary 17 时出现 kotlin-android 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50749417/

相关文章:

android-studio - 如何在 Android Studio 的版本控制项目中共享运行/调试配置?

gradle - 在项目 : 上找不到属性 'plugin'

安卓工作室 3.2 金丝雀 14 : The following packages are not available "Package id platforms;android-28"

android - android 是否有 *native* 支持 SVG 图像作为可绘制资源(图标)?

android - 在设置 onClickListener 之前检查 View 是否 == null

java - mMap.setMapStyle(GoogleMap.MAP_TYPE_NORMAL) 发生错误; , 为什么?

android - 构建失败的未知属性 'packagingOptions'

android - ActionMode 自定义背景

Android listview多选

android - 将 Android Studio 升级到 3.2 版后,出现本地化错误