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(对应的是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
网友评论