当前位置:   article > 正文

Plugin ‘com.android.application‘ is already on the script classpath的解决方法_plugin 'com.android.application' is already on the

plugin 'com.android.application' is already on the script classpath. plugins

【现象】

Build file 'D:\work\app\build.gradle' line: 2

Error resolving plugin [id: 'com.android.application']
> Plugin 'com.android.application' is already on the script classpath. Plugins on the script classpath cannot be applied in the plugins {} block. Add  "apply plugin: 'com.android.application'" to the body of the script to use the plugin.


【解决方法】

plugins {
    id 'com.android.application'
    id 'kotlin-android'
    id 'kotlin-android-extensions'
}

修改为:

plugins {
    apply plugin: 'com.android.application'
    apply plugin: 'kotlin-android'
    apply plugin: 'kotlin-android-extensions'
}

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/737720
推荐阅读
相关标签
  

闽ICP备14008679号