I’m having the same exact issue on windows and would like to see an answer. From what I’ve gatthered java.lang.UnsupportedClassVersionError: com/android/dx/command/Main : Unsupported major.minor version 52.0
means that somewhere it’s looking for version 8 instead of 1.7. I don’t have any other version than 1.7 and all environment variables are all pointing to it as well as AndroidSDK settings just like yours.