java.lang.UnsupportedClassVersionError: com/android/prefs/AndroidLocationsProvider has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
錯誤原因:
本地Java Runtime 版本是52(對應(yīng)的是java8)府阀,而新安裝的Android SDK command-line版本是9.0的(也就是55.0)
解決辦法:
- 打開Android SDK Manager ,更換Android SDK command-line版本到8.0
-
默認Android SDK command-line只顯示一個版本,需要打開右小角的Show Package Details
image.png