LAMW - (SOLVED) ERROR find miss string insert plugin on build.gradle script lazarus / 43-Android ---------------------------------------------------------------------- Mongkey · 2022-09-07 00:11 if i had google service plugin on project, build. gradle script got wrong everytime fisrt loading project, seems got wrong insert string on apply plugin in smartdesigner section: 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 buildscript {    repositories {       //-------------------------------WRONG INSERT SCRIPT HERE-----------------------------------//        jcen      classpath 'com.google.gms:google-services:4.3.8'ter()       //-------------------------------WRONG INSERT SCRIPT HERE-----------------------------------//       //android plugin version >= 3.0.0 [in classpath] need gradle version >= 4.1 and google() method        google()    }    dependencies {                classpath 'com.android.tools.build:gradle:7.0.0'    }} correct build.gradle script: 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 buildscript {    repositories {         jcenter()       //android plugin version >= 3.0.0 [in classpath] need gradle version >= 4.1 and google() method        google()    }    dependencies {        classpath 'com.google.gms:google-services:4.3.8' <====depedecies must bet set here (4.3.13)        classpath 'com.android.tools.build:gradle:7.0.0'    }} thank you ---------------------------------------------------------------------- jmpessoa · 2022-09-07 22:08 I will fix it!!! Thank you! ---------------------------------------------------------------------- Mongkey · 2022-09-07 23:54 Will wait your fix, thank you. ---------------------------------------------------------------------- rsu333 · 2022-09-08 13:47 Does this  interfere with  aab build ? I am facing problem of build  aab , If this error is fix then it will solve my problem ? ---------------------------------------------------------------------- jmpessoa · 2022-09-09 05:08 QuoteWill wait your fix.... it won't be long.... i'm just finishing my experiments (proof of concept) with "LAMW +  Kotlin"! QuoteDoes this  interfere with  aab build ? No... ---------------------------------------------------------------------- rsu333 · 2022-09-09 06:28 Yours work is  very GREAT ---------------------------------------------------------------------- Mongkey · 2022-09-10 10:01 Quote from: jmpessoa on September 09, 2022, 07:08:38 amQuoteWill wait your fix.... it won't be long.... i'm just finishing my experiments (proof of concept) with "LAMW +  Kotlin"! QuoteDoes this  interfere with  aab build ? No... WOWWWWWW...... AWESOME ---------------------------------------------------------------------- Mongkey · 2022-09-17 02:18 Still got this error on latest LAMW onfirst load and compile ---------------------------------------------------------------------- jmpessoa · 2022-09-17 13:47 Hi, Monkey Maybe you need  update and re-install  "lazandroidwizardpack.lpk".... Here I got insertion at the correct point  testing "jsFirebasePushNotificationListener" component.... (picture) Are you using any other component? ---------------------------------------------------------------------- Mongkey · 2022-09-18 00:27 already downloaded newest LAMW source, still got same result on inserting firebase plugin, starting new project that has firebase plugin only also got same miss inserting behavior. on new update layouting was very not easy to handle, like riding a wild cow, wrapcontent and any others not working, i'm sticking on LAMW before latest update. thank you! below attached pic are my IDE profile & components on my project. ---------------------------------------------------------------------- jmpessoa · 2022-09-18 17:07 Quoteon new update layouting was very not easy to handle, like riding a wild cow, wrapcontent and any others not working... Please, put here your working "lamwdesigner.pas" and  "lamwdesigner.pas".  I will compare its with my updated and try found what is going.... Thank you! ---------------------------------------------------------------------- Mongkey · 2022-09-18 22:25 ,  (1) this one is the stable one with no error on layouting but error on inserting plugin script. (4-15-22)  (2) the wild one, with still miss plugin script insert. (9-17-22) ---------------------------------------------------------------------- jmpessoa · 2022-09-19 01:15 Quoteon new update layouting was very not easy to handle, like riding a wild cow, wrapcontent and any others not working.... I am looking for some change in  updated ""lamwdesigner.pas"" but I didn't find anything that could impact update layouting... here are my critic change: old code: 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 TAndroidWidgetMediator.InitComponent(AComponent, NewParent: TComponent; NewBounds: TRect);var  newName: string;  i: Integer;  oldName: string;begin  if AComponent <> AndroidForm then // to preserve jForm size  begin     if Acomponent is jControl then    begin      if AComponent.Name.StartsWith(AComponent.ClassName) and (AComponent.Name[1] = 'j') then      begin        newName := AComponent.ClassName;        ............................  new code: 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 AComponent.Name.StartsWith(AComponent.ClassName) then      begin        if (AComponent.Name[1] = 'j') or (AComponent.Name[1] = 'J') or (AComponent.Name[1] = 'K') then          begin              newName := AComponent.ClassName;              ..............................................  will I have done any damage? ---------------------------------------------------------------------- Mongkey · 2022-09-20 00:17 opm 07.15 9-20-22, all are OK without modifying any lamwdesigner.pas, except gradle script for firebase pugin insert. thank you ---------------------------------------------------------------------- jmpessoa · 2022-09-20 03:12 Quoteopm 07.15 9-20-22 ... opm? Please, update from github.... opm always keep some delay... ---------------------------------------------------------------------- Mongkey · 2022-09-24 23:39 i already tested from github 25-09-22 6.38AM : Firebase insert script -> OK! Layout -> OK! Thank you