This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
+1 vote

In Godot 3.4.2 I'm trying to export an android project that uses Game Analytics and custom build. But it fails to export the build and gives me this message.
the full message is too long to post here so I removed part of it.

So far I've been unable to find any answers that can help.
Please advise.

FAILURE: Build failed with an exception.

  • Where:
    Build file 'D:\D\Work Projects\ManicDream\GameHype 2022\Godot Project\android\build\assetPacks\installTime\build.gradle'

  • What went wrong:
    Could not compile build file 'D:\D\Work Projects\ManicDream\GameHype 2022\Godot Project\android\build\assetPacks\installTime\build.gradle'.

    startup failed:
    General error during conversion: Unsupported class file major version 62

    java.lang.IllegalArgumentException: Unsupported class file major version 62
    at groovyjarjarasm.asm.ClassReader.(ClassReader.java:196)
    at groovyjarjarasm.asm.ClassReader.(ClassReader.java:177)
    at groovyjarjarasm.asm.ClassReader.(ClassReader.java:163)
    at groovyjarjarasm.asm.ClassReader.(ClassReader.java:284)
    at org.codehaus.groovy.ast.decompiled.AsmDecompiler.parseClass(AsmDecompiler.java:81)
    at org.codehaus.groovy.control.ClassNodeResolver.findDecompiled(ClassNodeResolver.java:251)
    at org.codehaus.groovy.control.ClassNodeResolver.tryAsLoaderClassOrScript(ClassNodeResolver.java:189)
    at org.codehaus.groovy.control.ClassNodeResolver.findClassNode(ClassNodeResolver.java:169)
    at org.codehaus.groovy.control.ClassNodeResolver.resolveName(ClassNodeResolver.java:125)
    at org.codehaus.groovy.ast.decompiled.AsmReferenceResolver.resolveClassNullable(AsmReferenceResolver.java:57)
    at org.codehaus.groovy.ast.decompiled.AsmReferenceResolver.resolveClass(AsmReferenceResolver.java:44)
    at org.codehaus.groovy.ast.decompiled.AsmReferenceResolver.resolveNonArrayType(AsmReferenceResolver.java:79)
    at org.codehaus.groovy.ast.decompiled.AsmReferenceResolver.resolveType(AsmReferenceResolver.java:70)
    at

.
.
.

org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:297)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:61)
at java.base/java.lang.Thread.run(Thread.java:833)

1 error

  • 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 1s

Exit Code: 1

Godot version 3.4.2
in Engine by (26 points)

after updating my Godot to 3.4.5 and updating my android SDK and using JDK 18 the error changed to this:

FAILURE: Build failed with an exception.

  • Where:
    Build file 'D:\D\Work Projects\ManicDream\GameHype 2022\Godot Project\android\build\build.gradle' line: 8

  • What went wrong:
    A problem occurred evaluating root project 'build'.

    Could not open dsl generic class cache for script 'D:\D\Work Projects\ManicDream\GameHype 2022\Godot Project\android\build\config.gradle' (C:\Users\D.gradle\caches\7.2\scripts\1k0us4xu9qcto0o4wniedov1y).
    BUG! exception in phase 'semantic analysis' in source unit 'BuildScript' Unsupported class file major version 62

  • 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 6s

Exit Code: 1

still searching

1 Answer

0 votes

following this video helped me solve the problem.

by (26 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.