Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 19 Next »

Live example


If you want to see a live example of the capabilities of the Android plugin, you can have a look at the MorseFlash project.

Description / Features

This plugin enhances the Java Ecosystem to analyze Android projects within SonarQube:

  • Adds a new set of rules based on Android lint
  • On top of Java files, Android Manifest and resources (such as layouts or pictures) are analyzed

It is compatible with the SonarQube Eclipse plugin to track issues while coding. It is also compatible with the Issues Report plugin to run pre-commit local analysis.


The Android SDK must be installed on the machine(s) running the SonarQube analyses. The ANDROID_HOME environment variable should be configured to point to the installation directory of the Android SDK.

Note that you have to install the different Patforms/API that your projects are built with.


  1. Install the plugin through the Update Center or download it into the SONARQUBE_HOME/extensions/plugins directory
  2. Restart the SonarQube server


The SonarQube Runner, Maven or Ant can be used to run analysis on Android projects.

Sample projects can be browsed or downloaded on GitHub:

  • Simple project analyzed with the SonarQube Runner: /projects/languages/android/android-sonarqube-runner
  • Simple Maven project and code coverage with Emma: /projects/languages/android/android-maven-emma


See Metrics documentation page.

Extending Coding Rules using XPath

See Extending Coding Rules for Java.


Since the SQALE model for Java is already provided by the Java Ecosystem, the SQALE model for Android has to be applied manually:

  1. Download the XML file containing the SQALE model
  2. Log in as a System administrator
  3. Go to Settings > SQALE > Import/Export > Merge model
  4. Upload the XML file
  5. Click on "Merge selected files"

Change Log

com.atlassian.confluence.macro.MacroExecutionException: JIRA project does not exist or you do not have permission to view it.

  • No labels