I am using Laz4android 3.4, fresh installed under windows10.
I found and followed some install informations on this forum to install
* Android Studio (latest)
* Android NDK r21e
* apache Ant 1.10.15
* Android SDK cmdline-tools
* Gradle 8.11.1
* Java JDK-21
Created a small LAMW project, went to test it, choose Run>Build and then Run>"LAMW build android APK and run" , but there was reported an error :
Messages, Hints: 2
Verbose: Selected chip architecture: armeabi-v7a
Verbose: Taking libraries from folder: C:\Users\mirce\lazproekti\ANDROID\AppLAMWProject1\libs\armeabi-v7a
Verbose: Found library: libcontrols.so
Note: Duplicate unit "controls" in "controls", orphaned ppu "C:\Users\mirce\lazproekti\ANDROID\AppLAMWProject1\obj\controls\controls.o"
Note: Duplicate unit "controls" in "LCLBase 3.4", ppu="C:\laz4android3.4\lcl\units\arm-android\controls.ppu", source="C:\laz4android3.4\lcl\controls.pp"
Project: Executing command before: Success
before build...
Compile Project, OS: android, CPU: arm, Target: C:\Users\mirce\lazproekti\ANDROID\AppLAMWProject1\libs\armeabi-v7a\libcontrols.so: Success
Project: Executing command after: Success
after build...
Building APK (Gradle)... : Success
Starting APK (Gradle)... : FAILURE: Build failed with an exception., Errors: 1
Fatal: FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':installDebug'.
> java.util.concurrent.ExecutionException: org.gradle.api.GradleException: Failed to install on any devices.
* 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.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.11.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD FAILED in 39s
34 actionable tasks: 1 executed, 33 up-to-date
Exception, Errors: 1
Fatal: [Exception] Failed: Cannot run APK!
EDIT: DeepSeek was helpful, it said that the APK was generated but cant be copied+run on the Emulator becaue of different cpu's between LAMW and emulator.
Anyway, i copied the APK to myu phone and installed and all went good.