Bug [LAMW] "Target SDK Version" not Save! lazarus / 43-Android ---------------------------------------------------------------------- ADiV · 2018-07-13 10:27 @jmpessoa When I modify "Target SDK Version" a project "Gradle" or "Ant" and close that project and when I open it does not save the "Target SDK Version" When I want to compile a "Gradle" project with a different version at 28 I have to manually change the "build.gradle" file with the following modification: Code: Java  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i defaultConfig {            minSdkVersion 14            targetSdkVersion 28 //22 for example I have to change manual          versionCode 1            versionName "1.0"    } ---------------------------------------------------------------------- jmpessoa · 2018-07-16 03:02 Hello TR3E! LAMW will [always] look for the more "up-to-date"   sdk pair  "platforms/build-tools" to compile [and target] ....  and you'll still be able to run your applications on old [>4.0] devices... ---------------------------------------------------------------------- ADiV · 2018-07-16 08:52 The problem is that from version 6 of android "SDK 24", the permissions must be granted in time of execution. If we compile for "SDK 28" with runtime permissions on Android 4 and Android 5 it will give a fatal error when trying to execute, the permissions at runtime. That is why I prefer to compile with SDK 22 for more compatibility. ---------------------------------------------------------------------- jmpessoa · 2018-07-16 21:35 Ok, i will improve  LAMW! Thank you! ---------------------------------------------------------------------- jmpessoa · 2018-07-18 19:21 Improved New Project dialog [flexible target api (+)] and you can now add/configure "JNIAndroidProject.ini"   KeepManifestTargetApi=t to preserve the sdk target based in the "AndroidManifest.xml" Thank you! ---------------------------------------------------------------------- ADiV · 2018-07-20 12:28 Great job, thank you very much.