Recent

Author Topic: Index out of bounds -1 error  (Read 1818 times)

alexone

  • New Member
  • *
  • Posts: 17
Index out of bounds -1 error
« on: May 28, 2019, 12:52:29 am »
Installed laz4Andriod built as per document on freepascal website.

File -> New -> LAMN[GUI]Andriod Module
after I hit okay it comes up list index (-1)

however for just selecting a new app it comes up fine.. ugg

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Index out of bounds -1 error
« Reply #1 on: May 28, 2019, 12:58:57 am »

Quote
it comes up list index (-1) ....

Possibly your sdk/ndk installation is incomplete ... [empty sdk folder "platforms" or "build-tools" ?]
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

alexone

  • New Member
  • *
  • Posts: 17
Re: Index out of bounds -1 error
« Reply #2 on: May 28, 2019, 01:02:25 am »
They are set to latest versions via android studio. I will reinstall separately. Doing nothing right today with laz, thank you

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Index out of bounds -1 error
« Reply #3 on: May 28, 2019, 01:12:41 am »

You can check your "Laz4Android/config"  LAMW.ini  file.... some path missing?
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

alexone

  • New Member
  • *
  • Posts: 17
Re: Index out of bounds -1 error
« Reply #4 on: May 28, 2019, 03:00:55 am »
I got it working after a reboot.
tried to run a simple form with a button
1st build it
2nd. run with build apk
got panic stuff all over and failed to build apk and Im lost now.
Thank you for your time, I think I had enough, I can't spend my time getting it to run just so my program can run.

alexone

  • New Member
  • *
  • Posts: 17
Re: Index out of bounds -1 error
« Reply #5 on: May 28, 2019, 03:57:24 am »
Finally!!!!
thank you, it was sdk\platform\ was empty!!
Kinda late now and been at this since 5:00 am -- now 6:33 pm. Feel good I got a simple apk running..
fix was run SDK manager again and download ver 6 and 7 platform builds.


jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Index out of bounds -1 error
« Reply #6 on: May 28, 2019, 07:12:11 am »

Nice!!!

It's late at night here ...
but, I continue coding  a new "Open Street View" component.... :D
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

engkin

  • Hero Member
  • *****
  • Posts: 3112
Re: Index out of bounds -1 error
« Reply #7 on: June 06, 2019, 03:29:44 am »
This error comes from uformworkspace.pas:
Code: Pascal  [Select][+][-]
  1. procedure TFormWorkspace.ListBoxNdkPlatformChange(Sender: TObject);
  2. ...
  3.   ndkApi:= ListBoxNdkPlatform.Items[ListBoxNdkPlatform.ItemIndex];

When empty, ListBoxNdkPlatform.ItemIndex is -1.

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Index out of bounds -1 error
« Reply #8 on: June 06, 2019, 04:31:24 am »

Fixed!!

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

 

TinyPortal © 2005-2018