LAMW with FPCUPDeluxe (latest android command line tools and gradle) lazarus / 43-Android ---------------------------------------------------------------------- WayneSherman · 2023-11-21 22:58 In recent testing I discovered the following: As of 2023-Nov-21, the latest android command line tools are version 10406996 ( from https://developer.android.com/studio/#downloads ) These require java class file 61 or greater. ( i.e. OpenJDK 17) But the version of gradle (6.8.3) used by fpcupdeluxe (v2.4.0a) does not work with class file 61 / OpenJDK 17: "Unsupported class file major version 61" ---------------------------------------------------------------------- DonAlfredo · 2023-11-22 06:14 That can be changed naturally. What Gradle version should be used ? ---------------------------------------------------------------------- WayneSherman · 2023-11-22 14:39 Quote from: DonAlfredo on November 22, 2023, 07:14:22 amThat can be changed naturally. What Gradle version should be used ? Gradle 7.3 is the first one that support Java 17 / OpenJDK 17: https://docs.gradle.org/current/userguide/compatibility.html I haven't recently tested, but according to LAMW docs, Gradle 7 is not supported yet: https://github.com/jmpessoa/lazandroidmodulewizard Quoterecommended version 6.6.1         warning: Gradle >= 7 don't supported by LAMW, yet!         warning: Gradle 6.x.y don't support Java > 13! See also: https://forum.lazarus.freepascal.org/index.php?topic=55005.0 https://github.com/jmpessoa/lazandroidmodulewizard/pull/455 ---------------------------------------------------------------------- WayneSherman · 2024-01-14 02:56 Quote from: DonAlfredo on November 22, 2023, 07:14:22 amThat can be changed naturally. What Gradle version should be used ? There have been recent updates to LAMW (thank you jmpessoa!).  LAMW now supports: Quoterecommended: Java JDK 21 + Gradle version >= 8.5 recommended: Java JDK 17 + Gradle version >= 8.1.1 Android Studio is distributed with and recommends using JetBrains Runtime (JBR) which is an enhanced OpenJDK.  The latest release is based on OpenJDK 17. Gradle is tested with Android Gradle Plugin 7.3 through 8.1. Based on the above, probably the most stable config is to use Gradle 8.1.1 (along with OpenJDK 17). ---------------------------------------------------------------------- jmpessoa · 2024-01-17 17:27 QuoteBased on the above, probably the most stable config is to use Gradle 8.1.1 (along with OpenJDK 17). We can configure it for 8.2.1 and thus open a LAMW project in Android Studio "Hedgehog" without complaints... that is:  JDK 17 + Gradle 8.2.1 + Android SDK "platform-34" ! ---------------------------------------------------------------------- WayneSherman · 2024-01-20 16:19 Quote from: jmpessoa on January 17, 2024, 06:27:42 pmWe can configure it for 8.2.1 and thus open a LAMW project in Android Studio "Hedgehog" without complaints... that is:  JDK 17 + Gradle 8.2.1 + Android SDK "platform-34" ! Yes, I think that is a good combination.  It is very recent, but not bleeding edge. https://developer.android.com/build/releases/gradle-plugin#8-2-0 "8.2.0 (November 2023) - Android Gradle plugin 8.2.0 is a major release that includes a variety of new features and improvements." https://developer.android.com/build/releases/gradle- plugin?buildsystem=ndk-build#updating-gradle "For the best performance, you should use the latest possible version of both Gradle and the plugin."