作者:nikechen | 来源:互联网 | 2023-02-02 10:05
在构建时在Android studio canary 3.0预览中获取此错误.
1> Heitor..:
您无需删除插件,只需将版本更新为2.6.1
.
plugins {
id "org.sonarqube" version "2.6.1"
}
您还必须添加风味维度,请查看以下链接:https:
//developer.android.com/studio/build/gradle-plugin-3-0-0-migration.html?utm_source =android-studio #variant_aware
https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+Gradle
2> Avijeet Dutt..:
如果您只是应用插件并使用类路径,如下所示:
apply plugin: 'org.sonarqube'
classpath 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:1.2'
只需将类路径中定义的版本更改为:
classpath 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.5'
然后再做一次gradle同步.就这样!