FAILURE: Build failed with an exception.
Compiling settings file 'E:\Plane\build\jsb-link\frameworks\runtime-src\proj.android-studio\settings.gradle' using BuildScriptTransformer.
* What went wrong:
Could not open settings generic class cache for settings file 'E:\Plane\build\jsb-link\frameworks\runtime-src\proj.android-studio\settings.gradle' (C:\Users\Angel\.gradle\caches\6.7.1\scripts\4k9ijk2w469rcga7h4uxfsoka).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 62
遇到这种情况是因为我下载了java18版本的,随后下载java8修改环境变量可解决
* What went wrong:
Execution failed for task ':Plane:externalNativeBuildRelease'.
> Build command failed.
Error while executing process E:\SDK\ndk\22.0.7026061\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null
这种情况是下载的ndk用的太高版本了,重新使用19版本的解决
还有就是用了安卓12的也编译失败了,使用安卓10解决