August 18, 2025Aug 18 Currently I am evaluating FGX Native and I have installed Rad Studio 12.3 and the Trial version of FGX, The project compiled successfully, but when I try to run I got:[Exec Error] FGX.Delphi.Android.Targets(118): The command "gradlew app:build" exited with code 1.FMX project run without problems.Any help?
August 18, 2025Aug 18 sorry, probably the reason is that this link to a closed part of the forum for users with an active subscription
August 18, 2025Aug 18 i try repeat that post:@Yaroslav Brovin wrote:The detailed reason for the crash can be found in the bottom Output tab. The error is accompanied by a detailed explanation of what to do.In the example above, the project specifies TargetSDKVerison = 30, however, the acceptable level is not lower than 31.
August 18, 2025Aug 18 please pay more attention - use the Output tab in the bottom of a page, but not the Build tab ; Edited August 18, 2025Aug 18 by dervish00
August 18, 2025Aug 18 We can see "Unsupported class file major version 68" error. What is meaning - i don't know. May be it's know google, but i hope that @Yaroslav Brovin is knowing better. It will need to wait his message )))
August 18, 2025Aug 18 This information i found on the stackoverflow:What version of Java is your project using? The error you received is almost certainly caused by an unsupported Java version. I would try Java 17.Edit: Major Version 68 is Java 24, if you're working with an older project this is almost certainly not supported. Try Java 17.
August 18, 2025Aug 18 Author So do I need to update Java? Which version do you recommend installing?Thank you,
August 18, 2025Aug 18 This is info about my version of Java:IMPLEMENTOR="Eclipse Adoptium" IMPLEMENTOR_VERSION="Temurin-21.0.2+13" JAVA_RUNTIME_VERSION="21.0.2+13-LTS" JAVA_VERSION="21.0.2" JAVA_VERSION_DATE="2024-01-16" LIBC="default" MODULES="java.base java.compiler java.datatransfer java.xml java.prefs java.desktop java.instrument java.logging java.management java.security.sasl java.naming java.rmi java.management.rmi java.net.http java.scripting java.security.jgss java.transaction.xa java.sql java.sql.rowset java.xml.crypto java.se java.smartcardio jdk.accessibility jdk.internal.jvmstat jdk.attach jdk.charsets jdk.internal.opt jdk.zipfs jdk.compiler jdk.crypto.ec jdk.crypto.cryptoki jdk.crypto.mscapi jdk.dynalink jdk.internal.ed jdk.editpad jdk.hotspot.agent jdk.httpserver jdk.incubator.vector jdk.internal.le jdk.internal.vm.ci jdk.internal.vm.compiler jdk.internal.vm.compiler.management jdk.jartool jdk.javadoc jdk.jcmd jdk.management jdk.management.agent jdk.jconsole jdk.jdeps jdk.jdwp.agent jdk.jdi jdk.jfr jdk.jlink jdk.jpackage jdk.jshell jdk.jsobject jdk.jstatd jdk.localedata jdk.management.jfr jdk.naming.dns jdk.naming.rmi jdk.net jdk.nio.mapmode jdk.random jdk.sctp jdk.security.auth jdk.security.jgss jdk.unsupported jdk.unsupported.desktop jdk.xml.dom" OS_ARCH="x86_64" OS_NAME="Windows" SOURCE=".:git:4a3137cab93d" BUILD_SOURCE="git:5bb80cb8d781321c3390d89ed2bbd100218a8e1b" BUILD_SOURCE_REPO="https://github.com/adoptium/temurin-build.git" SOURCE_REPO="https://github.com/adoptium/jdk21u.git" FULL_VERSION="21.0.2+13-LTS" SEMANTIC_VERSION="21.0.2+13" BUILD_INFO="OS: Windows Server 2022 Version: 10.0" JVM_VARIANT="Hotspot" JVM_VERSION="21.0.2+13-LTS" IMAGE_TYPE="JDK"
August 19, 2025Aug 19 Author I reinstalled Java 21, but I’m still getting the same error when trying to deploy the project.Should I install 32bit? Edited August 19, 2025Aug 19 by yanchun
August 19, 2025Aug 19 Author Thank you, we will wait to @Yaroslav Brovin I tried various versions of Java and uninstalled FGX and reinstalled it again. I also tried different Android SDKs (25, 29,35...), also, I did many things ending with one result: the same error when using FGX and FMX projects run without any problem.
August 19, 2025Aug 19 Administrators Hello @yanchun ,13 hours ago, yanchun said:I reinstalled Java 21, but I’m still getting the same error when trying to deploy the project.Did you specified correct java version in Android Profile SDK in IDE?Did you JAVA_HOME enviorument variable point on Java 21?
August 20, 2025Aug 20 Author Still the same error@Yaroslav Brovin I don't think that this error is related to Java, I still got the same error when trying to deploy.
August 20, 2025Aug 20 Author I see that it is still referring to the wrong Java path, I deleted that path, and wow it's working.Thank you all :-)
January 3Jan 3 Доброго времени суток!Такая же проблема при деплое простого приложения с одной пустой формой которое было мной создано [Exec Error] FGX.Delphi.Android.Targets(120): The command "gradlew app:build" exited with code 1.Предыдущий пользователь решил свою проблему исправлением этих путей @Yaroslav Brovin , а я что неправильно делаю?
January 3Jan 3 Administrators 46 minutes ago, Grigoriy said:Доброго времени суток!Такая же проблема при деплое простого приложения с одной пустой формой которое было мной создано [Exec Error] FGX.Delphi.Android.Targets(120): The command "gradlew app:build" exited with code 1.Предыдущий пользователь решил свою проблему исправлением этих путей @Yaroslav Brovin , а я что неправильно делаю?Добрый день,О причине ошибки можно узнать тут:Можете скинуть сюда текст, я подскажу, что не так.
Create an account or sign in to comment