Recent

Author Topic: LazToAPK on windows 10  (Read 8731 times)

nasa

  • New Member
  • *
  • Posts: 20
LazToAPK on windows 10
« on: June 22, 2017, 04:23:09 pm »
Someone installed laztoapk on Windows 10 ?

I could not get it running

it can not find android ndk, android sdk and even java JDK.

i have changed the paths with no sucess

thanks

Handoko

  • Hero Member
  • *****
  • Posts: 3759
  • My goal: build my own game engine using Lazarus
Re: LazToAPK on windows 10
« Reply #1 on: June 22, 2017, 06:33:56 pm »
If I remember correctly, when installing laztoapk, you will be asked to down load ndk, sdk and jdk. Did you skip them?

Handoko

  • Hero Member
  • *****
  • Posts: 3759
  • My goal: build my own game engine using Lazarus
Re: LazToAPK on windows 10
« Reply #2 on: June 22, 2017, 06:41:54 pm »
Oh, I was wrong. That is laz4android. If you're a beginner try laz4android, it is easier. Or try LAMW.

To make LazToApk works, you have to follow the instruction "Lazarus and Android.pdf":
https://sourceforge.net/projects/laztoapk/files

To learn more about Lazarus Android programming:
http://forum.lazarus.freepascal.org/index.php/topic,33487.msg217112.html#msg217112
« Last Edit: June 22, 2017, 06:58:43 pm by Handoko »

nasa

  • New Member
  • *
  • Posts: 20
Re: LazToAPK on windows 10
« Reply #3 on: June 27, 2017, 02:15:00 pm »
Ok i could make it run on Windows 10 following the Lazarus and Android.pdf

It Builds the Project, create the Keys, builds the APK and install on device

But when i try to run the app on device it pops the message "Application has stopped"

My Device: Samsung Galaxy S5
Android: 6.0.1
LaztoApk: 0.9.0.37
NDK-Plataform: 4.1.2 (API 16)
SDK Build-tool: 26.0.0
JDK: 1.8.9.131

Thanks

Handoko

  • Hero Member
  • *****
  • Posts: 3759
  • My goal: build my own game engine using Lazarus
Re: LazToAPK on windows 10
« Reply #4 on: June 27, 2017, 02:30:09 pm »
LazToApk and Laz4Android have issue with Android 5 and above. It has been discussed here, you can try to search the threads if you want to know more. If I remember correctly the problem was the CustomDrawn package (which used by LazToApk and Laz4Android) has compatibility issue with Android.

You can try LAMW, it is actively developed and the developer is very nice and helpful.

mpknap

  • Full Member
  • ***
  • Posts: 145
Re: LazToAPK on windows 10
« Reply #5 on: February 25, 2020, 07:00:16 pm »
Someone installed this lately? Are the links up to date? Because it doesn't install correctly, something doesn't download, maybe GRADLE ...
https://sourceforge.net/projects/laztoapk/files/

WimVan

  • Jr. Member
  • **
  • Posts: 79
Re: LazToAPK on windows 10
« Reply #6 on: March 06, 2020, 09:38:12 am »
I tried it too and got some problems with downloads.
What I did.
1) rename "downloads"-folder itn laztoapk to fe "test"
2) Normaly, while installing laztoapk next zips are donwloaded, but some of them aren't.
So search for them on the internet, download the zips to "test" and rename them to the name required from laztoapk. namely
  • laz4android.7z
  • gradle.zip
  • ndk.zip
  • sdk.zip
  • apache-ant.zip
3) Uninstall laztoapk
4) rename "test" to "downloads"
5) Run setup laztoapk again.  You'll see that no downloads are no more done, the zip-files are already available in the downloads-folder

DelphiFreak

  • Sr. Member
  • ****
  • Posts: 251
    • Fresh sound.
Re: LazToAPK on windows 10
« Reply #7 on: March 08, 2020, 04:33:00 pm »
Hi,

could you please try the new setup v0.9.0.42.

https://sourceforge.net/projects/laztoapk/files/setup_laztoapk_v0_9_0_42.exe/download

As Handoko mentioned I had to change some links in the setup script from http to https. (located in file https://sourceforge.net/p/laztoapk/svn/HEAD/tree/trunk/install/laztoapk.iss

Please let me know it worked, so I can delete setup with version 41 from download page.

Note: I did not do any changes to laztoapk executable ( even the version no of the executable was not updated, so it might still show 41 in the caption).
I only did changes to the setup-script for the https stuff.
« Last Edit: March 08, 2020, 04:36:30 pm by DelphiFreak »
Linux Mint 19.1, Lazarus 2.0, Windows 7&10, Delphi 7, Delphi 10.3 Rio

DelphiFreak

  • Sr. Member
  • ****
  • Posts: 251
    • Fresh sound.
Re: LazToAPK on windows 10
« Reply #8 on: March 08, 2020, 04:35:08 pm »
And I am always glad if some one constributes some input.

e.g. If someone successfully ran a configuration, please let me know so I can update this wiki

https://sourceforge.net/p/laztoapk/wiki/Home/
Linux Mint 19.1, Lazarus 2.0, Windows 7&10, Delphi 7, Delphi 10.3 Rio

WimVan

  • Jr. Member
  • **
  • Posts: 79
Re: LazToAPK on windows 10
« Reply #9 on: March 11, 2020, 08:04:07 am »
Hello,

I tried installing laztoapk and for as far the installation, all runs well BUT,
When I try opening the application, I always sees in the log that SDk build tool and NDK is not found.
Using path-button I see that when I enter the path to the SDK-package and hit 'Find' the application returns 2 possible paths. 
In the listbox, you then have to click on the found paths ...  Doing so still returns the error that SDK build tools can't been found.
I have the same problem with NDK.  ADV-button returns exactly the same problem as for the SDK-Build tools.
I followed all the defaults presented by Laztoapk while installing it.

What did I wrong ?

Wim
« Last Edit: March 11, 2020, 08:48:29 am by WimVan »

DelphiFreak

  • Sr. Member
  • ****
  • Posts: 251
    • Fresh sound.
Re: LazToAPK on windows 10
« Reply #10 on: March 11, 2020, 07:41:57 pm »
Hello WimVan,

did you follow exactly the installation as shown in this video ? https://netcologne.dl.sourceforge.net/project/laztoapk/01_Install%20laztoapk.mp4

See video at 2:37m. If you selected the wrong items, then it will not work.

The method "DetectInstalledSDKBuildTools" at line 537
https://sourceforge.net/p/laztoapk/svn/HEAD/tree/trunk/source/apkmanagermain.pas#l537

Search's for the files "dx.bat".
Looks like this file is not there.

Regards,
Sam
Linux Mint 19.1, Lazarus 2.0, Windows 7&10, Delphi 7, Delphi 10.3 Rio

WimVan

  • Jr. Member
  • **
  • Posts: 79
Re: LazToAPK on windows 10
« Reply #11 on: March 16, 2020, 08:23:41 am »
I cleaned up all concerning laztoapk using uninstall.  Then I cleaned the register ... where some keys were found.
Then I reinstalled all ...
Now succesfull.

Thanks.


Seenkao

  • Jr. Member
  • **
  • Posts: 59
Re: LazToAPK on windows 10
« Reply #12 on: March 29, 2020, 02:00:28 pm »
Извиняюсь что на русском.
 
Зачастую достаточно удалить *.lpi файл.

А тут я мучал Lazarus чтоб создать рабочий APK.
https://youtu.be/4oxssDB3JJE - программы, которые нужны или которые использовал
https://youtu.be/3tB_5mA2rO0 - и само создание APK-файла.

 

TinyPortal © 2005-2018