Skip to content
View in the app

A better way to browse. Learn more.

FGX Native

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

The command "gradlew app:build" exited with code 1

Featured Replies

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?

  • Author

I have no access (I already tried before I posted this question)

image.png

sorry, probably the reason is that this link to a closed part of the forum for users with an active subscription

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.

image.png

In the example above, the project specifies TargetSDKVerison = 30, however, the acceptable level is not lower than 31.

please pay more attention - use the Output tab in the bottom of a page, but not the Build tab ;

Edited by dervish00

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 )))

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.

  • Author

So do I need to update Java? Which version do you recommend installing?

Thank you,

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"
  • Author

I reinstalled Java 21, but I’m still getting the same error when trying to deploy the project.

Should I install 32bit?

Edited by yanchun

  • 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.

  • Author

Still the same error

image.png

image.png

image.png

image.png

@Yaroslav Brovin I don't think that this error is related to Java, I still got the same error when trying to deploy.

  • 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 :-)

image.png

  • 4 months later...

Доброго времени суток!

Такая же проблема при деплое простого приложения с одной пустой формой которое было мной создано [Exec Error] FGX.Delphi.Android.Targets(120): The command "gradlew app:build" exited with code 1.

image.png

Предыдущий пользователь решил свою проблему исправлением этих путей @Yaroslav Brovin , а я что неправильно делаю?

  • Administrators
46 minutes ago, Grigoriy said:

Доброго времени суток!

Такая же проблема при деплое простого приложения с одной пустой формой которое было мной создано [Exec Error] FGX.Delphi.Android.Targets(120): The command "gradlew app:build" exited with code 1.

image.png

Предыдущий пользователь решил свою проблему исправлением этих путей @Yaroslav Brovin , а я что неправильно делаю?

Добрый день,

О причине ошибки можно узнать тут:

Можете скинуть сюда текст, я подскажу, что не так.

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.