I\'m trying to compile my Android project and I\'m getting this error
[INFO] Exception in thread \"main\" java.lang.UnsupportedClassVersionError: com/android
Your Android build tools are not properly installed. Try installing some other version of build tools and give that version in the gradle file. or you can go to this directory
C:\Users\\AppData\Local\Android\sdk\build-tools
and see which build tools is installed. Try changing the build tool version in the gradle file and compile the app to see if it is working.
i had 22.0.1,23.0.02 and 24.0.0 versions of build tools and only the old 22.0.1 version worked.
source: i tried it myself and it worked for me.