How about new LAMW installation?
My fresh LAMW installation log.
-----------------------
Downloads
Laz4android3.4+fpc3.2.2.exe
android-ndk-r22b-windows-x86_64
apache-ant-1.10.15-bin
gradle-8.10.2-bin
openjdk-22+36_windows-x64_bin
Install
Install Laz4android3.4+fpc3.2.2.exe on windows11Pro.
Install LAMW package via OPM.
Laz4Android
menu ->tools -> [LAMW] Android Module Wizard -> path setting
JDK
C:\LazLAMW\openjdk-23+37_windows-x64_bin\jdk-23
ANT
C:\LazLAMW\apache-ant-1.10.15-bin\apache-ant-1.10.15\bin
GRADLE
C:\LazLAMW\gradle-8.11.1-bin\gradle-8.11.1
NDK
C:\LazLAMW\android-ndk-r22b-windows-x86_64\android-ndk-r22b
SDK
C:\Users\thoma\AppData\Local\Android\Sdk
menu ->tools -> [LAMW] Android Module Wizard -> Build FPC Cross Android -> Build
select aarch64, then build, OK.
menu ->tools -> [LAMW] Android Module Wizard -> Build FPC Cross Android -> Install
Path to FPC Source
C:\LazLAMW\fpcsrc
Path to FPC exe
C:\LazLAMW\fpc\bin\x86_64-win64
then install FPC Cross Android..
-----------------------
Update LAMW.
1. download the lastest LAMW Package from trunk.
2. extract to C:\laz4android3.4\config\onlinepackagemanager\packages
3. rename or delete the old LAMW folder and name the new one to LAMW.
4. menu ->tools -> [LAMW] Android Module Wizard -> Build FPC Cross Android -> Build
select aarch64, then build, OK.
menu ->tools -> [LAMW] Android Module Wizard -> Build FPC Cross Android -> Install
Path to FPC Unit.
C:\LazLAMW\fpc\units
Path to FPC exe.
C:\LazLAMW\fpc\bin\x86_64-win64
then Install.
menu -> tools -> clean and rebuild Lazarus IDE with normal profile.
5. Demo folder.
C:\laz4android3.4\config\onlinepackagemanager\packages\LAMW\demos
-----------------------
testing.
Laz4Android
Open a Demo projects
C:\laz4android3.4\config\onlinepackagemanager\packages\LAMW\demos\GUI\AppSqliteDemo4\jni\controls.lpi
open
C:\laz4android3.4\config\onlinepackagemanager\packages\LAMW\demos\GUI\AppSqliteDemo4\jni\unit1.pas
Project -> Project Options -> [LAMW] Android Project Options ->
Change Min SDK Version to suite your needed. (22?)
-----------------------
Devices Connection.
on Android Studio -> Device Manager -> Pair Devices Using Wi-Fi.
On your Android Device
Setting->.... Developer options -> Wireless Debugging = On
and then Pair device with QR Code.
Connected.
-----------------------
Menu -> Run -> [LAMW] Build anroid APK and Run
Done.
--------------------
Error occurs when try to build some old android project.
E: Manifest merger failed : android:exported needs to be explicitly specified for <receiver>. Apps targeting Android 12 and higher are required to specify an explicit value for android:exported when the corresponding component has an intent filter defined.
open AndroidManifest.xml on the demo folder.
C:\laz4android3.4\config\onlinepackagemanager\packages\LAMW\demos\GUI\AppSqliteDemo4\AndroidManifest.xml
searching for something like ...
<activity android:name="com.example.appsqlitedemo1.App ....." >
add android:exported="true"
<activity android:name="com.example.appsqlitedemo1.App ..... android:exported="true" >
save the file and Lazarus -> Menu -> Run -> [LAMW] Build anroid APK and Run again.
Done.
--------------------------
Remark, I have tried android-ndk r23,r24,r25,r26,r27 with an error message dialog "directory doesn't exist. [1]!"
Downgrade to android-ndk v. 22 DONE.