Plugin ‘com.android.application‘ is already on the script classpath的解决方法
Posted 秋9
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Plugin ‘com.android.application‘ is already on the script classpath的解决方法相关的知识,希望对你有一定的参考价值。
【现象】
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'
以上是关于Plugin ‘com.android.application‘ is already on the script classpath的解决方法的主要内容,如果未能解决你的问题,请参考以下文章
[idea plugin]python for idea plugin
`spring-boot-maven-plugin` 和 `maven-compiler-plugin` 有啥区别?
maven plugin 简单介绍和实战 (2021-05-29)