Index out of bounds -1 error lazarus / 43-Android ---------------------------------------------------------------------- alexone · 2019-05-27 22:52 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 · 2019-05-27 22:58 Quoteit comes up list index (-1) .... Possibly your sdk/ndk installation is incomplete ... [empty sdk folder "platforms" or "build-tools" ?] ---------------------------------------------------------------------- alexone · 2019-05-27 23:02 They are set to latest versions via android studio. I will reinstall separately. Doing nothing right today with laz, thank you ---------------------------------------------------------------------- jmpessoa · 2019-05-27 23:12 You can check your "Laz4Android/config"  LAMW.ini  file.... some path missing? ---------------------------------------------------------------------- alexone · 2019-05-28 01:00 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 · 2019-05-28 01:57 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 · 2019-05-28 05:12 Nice!!! It's late at night here ... but, I continue coding  a new "Open Street View" component.... ---------------------------------------------------------------------- engkin · 2019-06-06 01:29 This error comes from uformworkspace.pas: 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 TFormWorkspace.ListBoxNdkPlatformChange(Sender: TObject);...  ndkApi:= ListBoxNdkPlatform.Items[ListBoxNdkPlatform.ItemIndex]; When empty, ListBoxNdkPlatform.ItemIndex is -1. ---------------------------------------------------------------------- jmpessoa · 2019-06-06 02:31 Fixed!! Thank you!!!