Failed to apply plugin [id 'org.scoverage']
程序员文章站
2022-06-12 18:13:30
...
A problem occurred evaluating root project 'kafka-0.10.0.0-src'.
> Failed to apply plugin [id 'org.scoverage']
> Could not create an instance of type org.scoverage.ScoverageExtension.
> You can't map a property that does not exist: propertyName=testClassesDir
修改 build.gradle 文件,将org.scoverage:gradle-scoverage 版本修改,2.1.0修改为2.5.0,重新执行
buildscript {
repositories {
mavenCentral()
jcenter()
}
apply from: file('gradle/buildscript.gradle'), to: buildscript
dependencies {
// For Apache Rat plugin to ignore non-Git files
classpath "org.ajoberstar:grgit:1.9.3"
classpath 'com.github.ben-manes:gradle-versions-plugin:0.15.0'
classpath 'org.scoverage:gradle-scoverage:2.5.0' ## 将2.1.0修改为2.5.0
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.1'
}
}
参考:https://www.jianshu.com/p/a89f07616071
上一篇: PHP代码保护--Zend Guard的使用详解_PHP
下一篇: PHP:40+开发工具推荐
推荐阅读
-
Android:Failed to apply plugin [id ‘com.android.application‘]报错问题
-
Failed to apply plugin [id 'org.scoverage']
-
Android Studio之提示Gradle sync failed: Plugin with id 'com.novoda.bintray-release' not found.
-
android studio 报错 org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin
-
Android:Failed to apply plugin [id ‘com.android.application‘]报错问题