1

最近我安装了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

请帮忙。

4

1 回答 1

2

要解决此错误,请进行以下更改:

安装 Java SDK 版本 14 或以上。

JDK 下载链接 https ://www.oracle.com/java/technologies/javase-jdk14-downloads.html

请使用gradle-wrapper.properties等级版本 6.3或更高版本。

于 2020-07-01T07:05:00.247 回答