Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gradle sync failed: Cause: org/gradle/listener/ActionBroadcast

Getting this error in Android studio canary 3.0 preview while building.

like image 536
santosh kumar Avatar asked Jun 05 '17 06:06

santosh kumar


2 Answers

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

like image 98
Heitor Avatar answered Oct 21 '22 01:10

Heitor


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!

like image 31
Avijeet Dutta Avatar answered Oct 21 '22 00:10

Avijeet Dutta