Recent

Author Topic: LAMW - (SOLVED) ERROR find miss string insert plugin on build.gradle script  (Read 2104 times)

Mongkey

  • Sr. Member
  • ****
  • Posts: 430
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][+][-]
  1. buildscript {
  2.     repositories {
  3.        //-------------------------------WRONG INSERT SCRIPT HERE-----------------------------------//
  4.         jcen
  5.         classpath 'com.google.gms:google-services:4.3.8'ter()
  6.        //-------------------------------WRONG INSERT SCRIPT HERE-----------------------------------//
  7.        //android plugin version >= 3.0.0 [in classpath] need gradle version >= 4.1 and google() method
  8.         google()
  9.     }
  10.     dependencies {
  11.        
  12.         classpath 'com.android.tools.build:gradle:7.0.0'
  13.     }
  14. }
  15.  
correct build.gradle script:
Code: Pascal  [Select][+][-]
  1. buildscript {
  2.     repositories {
  3.          jcenter()
  4.        //android plugin version >= 3.0.0 [in classpath] need gradle version >= 4.1 and google() method
  5.         google()
  6.     }
  7.     dependencies {
  8.         classpath 'com.google.gms:google-services:4.3.8' <====depedecies must bet set here (4.3.13)
  9.         classpath 'com.android.tools.build:gradle:7.0.0'
  10.     }
  11. }
  12.  
thank you
« Last Edit: September 30, 2022, 03:48:50 am by Mongkey »

jmpessoa

  • Hero Member
  • *****
  • Posts: 2301
Re: LAMW - ERROR find miss string insert plugin on build.gradle script
« Reply #1 on: September 08, 2022, 12:08:41 am »

I will fix it!!!


Thank you!
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Mongkey

  • Sr. Member
  • ****
  • Posts: 430
Re: LAMW - ERROR find miss string insert plugin on build.gradle script
« Reply #2 on: September 08, 2022, 01:54:15 am »
Will wait your fix, thank you.

rsu333

  • Full Member
  • ***
  • Posts: 110
Re: LAMW - ERROR find miss string insert plugin on build.gradle script
« Reply #3 on: September 08, 2022, 03:47:15 pm »
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

  • Hero Member
  • *****
  • Posts: 2301
Re: LAMW - ERROR find miss string insert plugin on build.gradle script
« Reply #4 on: September 09, 2022, 07:08:38 am »
Quote
Will wait your fix....

it won't be long.... i'm just finishing my experiments (proof of concept) with "LAMW +  Kotlin"!

Quote
Does this  interfere with  aab build ?

No...
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

rsu333

  • Full Member
  • ***
  • Posts: 110
Re: LAMW - ERROR find miss string insert plugin on build.gradle script
« Reply #5 on: September 09, 2022, 08:28:21 am »
Yours work is  very GREAT

Mongkey

  • Sr. Member
  • ****
  • Posts: 430
Re: LAMW - ERROR find miss string insert plugin on build.gradle script
« Reply #6 on: September 10, 2022, 12:01:13 pm »
Quote
Will wait your fix....

it won't be long.... i'm just finishing my experiments (proof of concept) with "LAMW +  Kotlin"!

Quote
Does this  interfere with  aab build ?

No...

WOWWWWWW...... AWESOME  8) 8) 8-) 8-)

Mongkey

  • Sr. Member
  • ****
  • Posts: 430
Re: LAMW - ERROR find miss string insert plugin on build.gradle script
« Reply #7 on: September 17, 2022, 04:18:11 am »
Still got this error on latest LAMW onfirst load and compile

jmpessoa

  • Hero Member
  • *****
  • Posts: 2301
Re: LAMW - ERROR find miss string insert plugin on build.gradle script
« Reply #8 on: September 17, 2022, 03:47:22 pm »
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?

Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Mongkey

  • Sr. Member
  • ****
  • Posts: 430
Re: LAMW - ERROR find miss string insert plugin on build.gradle script
« Reply #9 on: September 18, 2022, 02:27:38 am »
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.
« Last Edit: September 18, 2022, 03:30:16 am by Mongkey »

jmpessoa

  • Hero Member
  • *****
  • Posts: 2301
Re: LAMW - ERROR find miss string insert plugin on build.gradle script
« Reply #10 on: September 18, 2022, 07:07:21 pm »
Quote
on 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!
« Last Edit: September 18, 2022, 07:38:41 pm by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Mongkey

  • Sr. Member
  • ****
  • Posts: 430
Re: LAMW - ERROR find miss string insert plugin on build.gradle script
« Reply #11 on: September 19, 2022, 12:25:44 am »
 :),
 (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)
« Last Edit: September 19, 2022, 12:34:26 am by Mongkey »

jmpessoa

  • Hero Member
  • *****
  • Posts: 2301
Re: LAMW - ERROR find miss string insert plugin on build.gradle script
« Reply #12 on: September 19, 2022, 03:15:13 am »
Quote
on 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][+][-]
  1. procedure TAndroidWidgetMediator.InitComponent(AComponent, NewParent: TComponent; NewBounds: TRect);
  2. var
  3.   newName: string;
  4.   i: Integer;
  5.   oldName: string;
  6. begin
  7.   if AComponent <> AndroidForm then // to preserve jForm size
  8.   begin
  9.  
  10.     if Acomponent is jControl then
  11.     begin
  12.       if AComponent.Name.StartsWith(AComponent.ClassName) and (AComponent.Name[1] = 'j') then
  13.       begin
  14.         newName := AComponent.ClassName;
  15.         ............................
  16.  

new code:

Code: Pascal  [Select][+][-]
  1.      if AComponent.Name.StartsWith(AComponent.ClassName) then
  2.       begin
  3.           if (AComponent.Name[1] = 'j') or (AComponent.Name[1] = 'J') or (AComponent.Name[1] = 'K') then
  4.           begin
  5.               newName := AComponent.ClassName;
  6.               ..............................................
  7.  

will I have done any damage?
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Mongkey

  • Sr. Member
  • ****
  • Posts: 430
Re: LAMW - ERROR find miss string insert plugin on build.gradle script
« Reply #13 on: September 20, 2022, 02:17:22 am »
opm 07.15 9-20-22, all are OK without modifying any lamwdesigner.pas, except gradle script for firebase pugin insert. thank you

jmpessoa

  • Hero Member
  • *****
  • Posts: 2301
Re: LAMW - ERROR find miss string insert plugin on build.gradle script
« Reply #14 on: September 20, 2022, 05:12:29 am »
Quote
opm 07.15 9-20-22 ...

opm? Please, update from github.... opm always keep some delay...
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

 

TinyPortal © 2005-2018