【问题标题】:On running the emulator getting this error: Cause: invalid type code: 1D运行模拟器时出现此错误:原因:无效类型代码:1D
【发布时间】:2020-07-01 06:53:13
【问题描述】:

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

请帮忙。

【问题讨论】:

    标签: android-studio-4.0


    【解决方案1】:

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

    安装 Java SDK 版本 14 或以上。

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

    gradle-wrapper.properties请使用等级6.3版或以上。

    【讨论】:

    • 谢谢,这确实有帮助。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-09-21
    • 2019-06-10
    • 2020-10-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-07-19
    相关资源
    最近更新 更多