Getting this error in Android studio canary 3.0 preview while building.
You do not need to remove the plugin, just update the version to 2.6.1
.
plugins {
id "org.sonarqube" version "2.6.1"
}
You also have to add flavor dimension, check out this link: 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
And if you're just applying the plugin and using a classpath, like this:
apply plugin: 'org.sonarqube'
classpath 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:1.2'
Just change the version as defined in the classpath to:
classpath 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.5'
And then just do a gradle sync again. That's all!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With