-1

How can we integrate sonarqube in android studio (gradle version is above 3.). I have already downloaded the latest version of Sonarqube. Can explain how to integrate sonarqube and Android stdio.

Bunny
  • 1,044
  • 12
  • 23
Dulaj Madusanka
  • 308
  • 2
  • 17

1 Answers1

4

Here are steps to implement sonar in android

  • Download more recent Sonar version. [http://www.sonarqube.org/downloads/][1]
  • Unzip the archive.
  • Go to sonarqube-7.x/bin (or whatever version you downloaded).
  • Open a corresponding folder according to your operating system as (linux-x86- 64).
  • Find sonar.sh (or StartSonar.bat for Windows).
  • Open up a terminal window and execute: sonar.sh start (or just double click StartSonar.bat on windows).
  • This command will start sonar listening on localhost:9000.
  • Open a browser and enter localhost:9000.The sonar web page should open.
  • If you get “page not found” in your browser, try to refresh the page later.
  • To add project in sonarqube server run ./gradlew sonar command on Android Studio terminal.
nikhil bansal
  • 449
  • 5
  • 15