LAMW 0.8.6.3 lazarus / 43-Android ---------------------------------------------------------------------- jmpessoa · 2023-12-09 05:32 Hi, All! LAMW 0.8.6.3  initial commit  is out there! https://github.com/jmpessoa/lazandroidmodulewizard * About Java and Gradle  support:      Java JDK 1.8 need Gradle version <=  6.7      Java 11 need Gradle version >=  6.7.1                    [edited: added support to Gradle 8.x ]       * About Java and Ant support:       Ant need java JDK 1.8 and Android SDK r25.2.5 Have fun! Thanks to All! PS. As soon as possible I will update the "readme.md"... ---------------------------------------------------------------------- Insid3Code · 2023-12-09 11:42 Hi, Thank you for the update there is an issue when reloading existing projects: build.gradle: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i     splits {        abi {            enable true            reset()            include ''armeabi-v7a''            universalApk false        } ''armeabi-v7a'' also, I loose my custom config when I reload my existing projects. ---------------------------------------------------------------------- Mongkey · 2023-12-09 11:56 Quote from: Insid3Code on December 09, 2023, 12:42:05 pmHi, Thank you for the update there is an issue when reloading existing projects: build.gradle: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i     splits {        abi {            enable true            reset()            include ''armeabi-v7a''            universalApk false        } ''armeabi-v7a'' also, I loose my custom config when I reload my existing projects. just simple solution, open project option, set your target API just like before, it is pointing on 33. Seems, after clean up or build package, it sets on 33 automatically on this release. It is better if we could determine, whether it auto config or manually config Thank you ---------------------------------------------------------------------- Insid3Code · 2023-12-09 12:56 QuoteIt is better if we could determine, whether it auto config or manually config IMHO! I'm not need any default config (that overwrite my modifications) when I reload my already configured (modified) projects... the better way is: 1- Default config when create new project. 2- No modification when reloading project. Also, in "res" folder LAMW add "mipmap" folders: - When create new project (default) - But I need when I remove any "mipmap" from my "res"  and reload my existent project,  LAMW don’t add it automatically. Best Regards. ---------------------------------------------------------------------- jmpessoa · 2023-12-09 15:47 I will try fix this issues....  and improve about reloading existing projects... Thanks to All! ---------------------------------------------------------------------- jmpessoa · 2023-12-09 16:10 Hi, Insid3Code! Hi, Mongkey! Please,  send me yours  "smartdesigner.pas"! Until there I just rollback  "smartdesigner.pas" Thanks to All! ---------------------------------------------------------------------- jmpessoa · 2023-12-09 21:48 Fixed! Quote1- Default config when create new project. 2- No modification when reloading project. OK. QuoteIt is better if we could determine, whether it auto config or manually config... Done! Thanks to All! ---------------------------------------------------------------------- Insid3Code · 2023-12-10 00:38 QuoteFixed!Thank you! I cloned a clean package for testing purpose... as I see you have dropped "gdx" from the package. When I build android_bridges/tfpandroidbridge_pack.lpk Laz_And_Controls_Events.pas search gdxform.pas also Laz_And_Controls_Events.pas contains several procedures need to be removed... Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i    procedure Java_Event_pOnGDXFormShow(env:PJNIEnv;this:JObject;Sender:TObject);   procedure Java_Event_pOnGDXFormResize(env:PJNIEnv;this:JObject;Sender :TObject;width:integer;height:integer);   procedure Java_Event_pOnGDXF ormRender(env:PJNIEnv;this:JObject;Sender:TObject;deltaTime:single);   procedure Java_Event_pOnGDXFormClose(env:PJNIEnv;this:JObject;Sender:TObject);   procedure Java_Event_pOnGDXFormTouchDown(env:PJNIEnv;this:JObject;Sen der:TObject;screenX:integer;screenY:integer;pointer:integer;button:int eger);   procedure Java_Event_pOnGDXFormTouchUp(env:PJNIEnv;this:JObje ct;Sender:TObject;screenX:integer;screenY:integer;pointer:integer;butt on:integer);   function Java_Event_pOnGDXFormKeyPressed(env:PJNIEnv;th is:JObject;Sender:TObject;keyCode:integer):integer;   procedure Java_Event_pOnGDXFormResume(env:PJNIEnv;this:JObject;Sender:TObject);   procedure Java_Event_pOnGDXFormPause(env:PJNIEnv;this:JObject;Sender:TObject);   procedure Java_Event_pOnGDXFormHide(env:PJNIEnv;this:JObject;Sender:TObject);  After successfully build and testing... Projects creation and reloading works fine. Best Regards. ---------------------------------------------------------------------- jmpessoa · 2023-12-10 03:20 QuoteLaz_And_Controls_Events.pas contains several procedures need to be removed... Done! LAMW 0.8.6.3 fixed and Improved  [added support to Gradle 8.x]! Thanks to All! ---------------------------------------------------------------------- WayneSherman · 2023-12-11 00:54 Quote from: jmpessoa on December 10, 2023, 04:20:59 amDone! LAMW 0.8.6.3 fixed and Improved  [added support to Gradle 8.x]! Thanks to All! Thank you for your hard work on these recent improvements! :-) ---------------------------------------------------------------------- Insid3Code · 2023-12-11 11:37 HI, Great! Thanks! I successfully tested Gradle 8.5 (Latest) and microsoft- jdk-17.0.9-windows-x64 LTS with real projects. Regarding "Improved mipmap directories create " it works, but it will be more flexible if the user's choice can be stored like what you have already done " " Best Regards. ---------------------------------------------------------------------- jmpessoa · 2023-12-11 17:24 QuoteI successfully tested Gradle 8.5 (Latest) and microsoft- jdk-17.0.9-windows-x64 LTS with real projects. Nice! (and now documented  hacking!)  LAMW 0.8.6.4 will add full support to JDK 17! it is coming! Maybe, you can help: What max android SDK version for JDK 11? What min android SDK version for JDK 17? QuoteRegarding "Improved mipmap directories create " it works, but it will be more flexible if the user's choice can be stored Done! ---------------------------------------------------------------------- WayneSherman · 2023-12-11 18:06 Quote from: jmpessoa on December 11, 2023, 06:24:46 pmWhat max android SDK version for JDK 11? What min android SDK version for JDK 17? https://developer.android.com/build/jdks QuoteUse this table to determine which Java version is supported by each Android API, and where to find details on which Java APIs are available. Android         Java   API and language features supported 14 (API 34)    17    Core libraries 13 (API 33)    11    Core libraries 12 (API 32)    11    Java API 11 and lower       Android versions There is some discussion here: https://stackoverflow.com/questions/54129834/which-android-versions- run-which-java-versions I don't know if this works but a comment from that discussion claims the existence of prebuild branches can be used to determine which Android versions are supported: The Android git repo for jdk11 prebuilds has branches for Android 10,11,12,13,14 https://android.googlesource.com/platform/prebuilts/jdk/jdk11/+refs The Android git repo for jdk17 prebuilds has branches for Android 13,14 https://android.googlesource.com/platform/prebuilts/jdk/jdk17/+refs ---------------------------------------------------------------------- Insid3Code · 2023-12-12 03:58 Hi, According to this: https://gradle.org/release-nightly/ (Nightly build) Gradle Release Notes: QuoteThe Gradle team is excited to announce Gradle 8.5-20231129110721+0000. Gradle now supports running on Java 21. Full Java 21 support Gradle 8.4 supported compiling and testing with Java 21 using Java toolchains, but running Gradle itself on Java 21 was not yet supported. With this release, Gradle now fully supports compiling, testing and running on Java 21. so I downloaded: microsoft-jdk-21.0.1-windows-x64 LTS then I set "classpath" to gradle:8.2.0 (Plugin) classpath 'com.android.tools.build:gradle:8.2.0': buildscript {     repositories {         mavenCentral()         google()     }     dependencies {         classpath 'com.android.tools.build:gradle:8.2.0'     } } and gradle path to "Gradle 8.5-20231129110721+0000" (renamed to Gradle-8.x) I got this error on build process: Namespace not specified. Specify a namespace in the module's build file. fixed like this: android {    namespace "org.lamw.applamwproject1"     lintOptions {        abortOnError false     } Successfully tested with my real projects. Best Regards. ---------------------------------------------------------------------- Mongkey · 2023-12-20 02:45 I got error on every change project properties for the last update. keeping sdk 21 all the time. its better the previous before. commented Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i  if iSdkTargetApi < 33 then  ... UpdateBuildModes(); worked again. Thank you ---------------------------------------------------------------------- jmpessoa · 2023-12-20 20:05 Quote if iSdkTargetApi < 33 then.... where I can found this code line?  What was your solution?    commenting on this line? ---------------------------------------------------------------------- Mongkey · 2023-12-21 08:39 On smartdesigner.pas, on loading project if i'm not mistaken.