执行批处理 SetupAndroid.bat, 可能会出现以下错误:
thread “main” 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
国外论坛有大牛提供了一个方法:文章来源:https://www.toymoban.com/news/detail-622067.html
Go into Android Studio and under Configure → SDK Manager
On the SDK Tools tab, select “Show Package Details” in the bottom right
Uncheck Android SDK command-line Tools (latest)
Check Android SDK command-line Tools 8.0
Click Apply
In Windows go to “C:\Users\USERNAME\AppData\Local\Android\Sdk\cmdline-tools” and rename the 8.0 folder to “latest”
Run SetupAndroid.bat again文章来源地址https://www.toymoban.com/news/detail-622067.html
到了这里,关于安卓环境配置的一个错误处理的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!