【现象】
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'
}
版权说明 : 本文为转载文章, 版权归原作者所有 版权申明
原文链接 : https://onefire.blog.csdn.net/article/details/123066267
内容来源于网络,如有侵权,请联系作者删除!