拉取项目 编绎有问题
Execution failed for task ':app:compileDebugJavaWithJavac'.
error: invalid source release: 20
- Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. Get more help at https://help.gradle.org. Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. For more on this, please refer to https://docs.gradle.org/8.3-rc-1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation. BUILD FAILED in 1m 54s 81 actionable tasks: 81 executed
原因:编译器找不到所需的JDK版本(20) 解决办法:更改IDE中JDK设置,按以下路径打开对应菜单 Android Studio -> File -> Project Structure -> SDK Location -> Gradle Settings -> Gradle JDK 设置所需的JDK版本
autojs6.3.3 需要Android studio openjdk使用jdk20,我使用19和21都报错了
换成了20也报错: AGPBI: {"kind":"error","text":"Invalid build configuration. Attempt to create a global synthetic for 'Record desugaring' without a global-synthetics consumer.","sources":[{}],"tool":"D8"}