AutoJs6 icon indicating copy to clipboard operation
AutoJs6 copied to clipboard

拉取项目 编绎有问题

Open peng267 opened this issue 2 years ago • 2 comments

error 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

peng267 avatar Sep 18 '23 09:09 peng267

原因:编译器找不到所需的JDK版本(20) 解决办法:更改IDE中JDK设置,按以下路径打开对应菜单 Android Studio -> File -> Project Structure -> SDK Location -> Gradle Settings -> Gradle JDK 设置所需的JDK版本

LZX284 avatar Sep 29 '23 07:09 LZX284

autojs6.3.3 需要Android studio openjdk使用jdk20,我使用19和21都报错了

dlufjfiqnurr avatar Oct 26 '23 04:10 dlufjfiqnurr

换成了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"}

budaowengd avatar Nov 19 '24 03:11 budaowengd