Recent

Author Topic: LAMW and FPCUpDeluxe and Gradle Version  (Read 1270 times)

WayneSherman

  • Full Member
  • ***
  • Posts: 243
LAMW and FPCUpDeluxe and Gradle Version
« on: May 01, 2022, 12:48:20 am »
I am testing and updating the How-To for installing LAMW on Linux using FPCUpDeluxe.
Are Gradle versions >= 7 ok to use with LAMW?

Here is what I know:
     

1. The LAMW readme says that Gradle version >= 7 is not supported.

2. The current FPCUPdeluxe release v2.2.0h and prerelease v2.2.0i both install Gradle v7.3.1.

I tested both FPCUPdeluxe v2.2.0h and 2.2.0i with LAMW and Gradle v7.3.1 (with OpenJDK11, Android SDK api level 31, NDK 22b) and it works fine for my test cases.  I compiled the AppAnimationDemo1 for both 32-bit and 64-bit ARM and it compiles, builds, and runs successfully (tested on Pixel 4).  I built APKs for several of the other demos.

3. The FPCUPdeluxe master branch has a recent commit to revert Gradle back to v6.8.3 which was in response to this issue report regarding Windows:  https://github.com/LongDirtyAnimAlf/fpcupdeluxe/issues/507

« Last Edit: May 01, 2022, 09:03:46 am by WayneSherman »

WayneSherman

  • Full Member
  • ***
  • Posts: 243
Re: LAMW and FPCUpDeluxe and Gradle Version
« Reply #1 on: May 01, 2022, 08:41:17 am »
I just tested a clean install on Windows 10 using Gradle 7.3.1:

  - OpenJDK 11 64-bit ( https://docs.microsoft.com/en-us/java/openjdk/download )
  - Android commandlinetools-linux-8092744_latest.zip
  - platforms;android-31, build-tools;31.0.0
  - ndk;22.1.7171670
  - FPCUPdeluxe release v2.2.0i
  - fpc 3.2.2 / Lazarus 2.2.0
  - gradle-7.3.1
  - Latest LAMW from git

Compile and build AppAnimationDemo1 for both ARMv7a + VFPv3 and Aarch64 with no errors.  Both APKs run fine on Pixel 4.

For both Windows and Linux, the Android Gradle Plugin for Gradle 7 requires OpenJDK 11:
https://developer.android.com/studio/releases/gradle-plugin#jdk-11

Also note the compatibility matrix here:
https://developer.android.com/studio/releases/gradle-plugin#compatibility_2
« Last Edit: May 01, 2022, 09:15:58 am by WayneSherman »

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: LAMW and FPCUpDeluxe and Gradle Version
« Reply #2 on: May 01, 2022, 08:40:35 pm »
Hi, WayneSherman!   

(and DonAlfred)

I agree!   

FPCUPdeluxe  can be one step ahead (drop-off "ant")  while the "recommended" installation will be a step behind so we can continue supporting "ant"  builder.

(please, put here your tested "build.gradle")

What about?


Thanks to All!
« Last Edit: May 01, 2022, 08:48:42 pm by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

WayneSherman

  • Full Member
  • ***
  • Posts: 243
Re: LAMW and FPCUpDeluxe and Gradle Version
« Reply #3 on: May 02, 2022, 04:07:22 pm »
(please, put here your tested "build.gradle")

I did not create that file.  When using FPCUPdeluxe, is "build.gradle" created by LAMW or FPCUPdeluxe?

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: LAMW and FPCUpDeluxe and Gradle Version
« Reply #4 on: May 02, 2022, 06:51:03 pm »
Quote
is "build.gradle" created by LAMW ....

Yes, all new (or opened) LAMW project has a updated "build.gradle"  file...
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

 

TinyPortal © 2005-2018