赞
踩
【现象】
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'
}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。