gpt4 book ai didi

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

转载 作者:塔克拉玛干 更新时间:2023-11-02 21:14:03 25 4
gpt4 key购买 nike

刚刚更新到 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com