Recommended solutions based on your search
This might be caused by and outdated version of Java, SonarQube now uses Java 8 as default. You might upgrade java or use an older version of SonarQube.
If you're using intellij plugin of sonarqube, you might have to set the JAVA_HOME ambient variable manually.
Solutions on the web
java.lang.UnsupportedClassVersionError: com/android/dx/command/Main : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)