最近我安装了 android studio,当我第一次运行该应用程序时,它运行没有任何错误,但现在,当我运行它时,它给出了错误,即
Cause: invalid type code: 1D
和
Executing tasks: [:app:assembleDebug] in project /home/dell/AndroidStudioProjects/disha
FAILURE: Build failed with an exception.
* What went wrong:
Could not initialize class org.codehaus.groovy.runtime.InvokerHelper
* 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
BUILD FAILED in 95ms
请帮忙。
要解决此错误,请进行以下更改:
安装 Java SDK 版本:14 或更高版本。
JDK下载链接:https://www.oracle.com/java/technologies/javase-jdk14-downloads.html
gradle-wrapper.properties
请使用6.3或更高版本。