运行模拟器时收到此错误:原因:无效类型代码:1D



最近我安装了 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或更高版本。

相关内容

  • 没有找到相关文章

最新更新