Lazarus

Programming => Operating Systems => Android => Topic started by: 5tr1x on November 16, 2019, 01:20:06 pm

Title: No way to Run any App make with LAMW
Post by: 5tr1x on November 16, 2019, 01:20:06 pm
I’m using Windows 10 + Laz4Android 2.0 + Java JDK 1.8 + Apache  Ant 1.10.7 + 6.1 + Android Ndk 9r + Sdk 25, my app was compiled ok, when i run it on emulator all was good, but when install an run on mu phone crash it. 
Title: Re: No way to Run any App make with LAMW
Post by: Handoko on November 16, 2019, 06:51:11 pm
What was machine you used to run it? And what was the target CPU the app compiled to?

I had similar problem like yours. It compiled and run correctly on emulator. But it crashed immediately when running it on my device. Later, I found it was targeted to ARM but the hardware was Asus Zenfone Intel CPU.
Title: Re: No way to Run any App make with LAMW
Post by: 5tr1x on November 17, 2019, 09:20:02 pm
I have a Gigabyte motherboard with a AMD Ryzen 3 processor, and i try to run on various phones with different versions of Android and nothing, always crash on startup
Title: Re: No way to Run any App make with LAMW
Post by: Handoko on November 18, 2019, 05:39:42 am
The program that crashed, did you build the project yourself? Have you tried the demos that come with the default LAMW installation?

You should first try to open a demo, compile and then run it on your emulator and devices. It should work. If it doesn't, there must be something wrong with your installation or configuration.
Title: Re: No way to Run any App make with LAMW
Post by: Dio Affriza on November 18, 2019, 08:16:32 am
No, that's nothing wrong. There's much chance your app will crash spectacularly until you know how LAMW's internal works. It's happened to me a lot. I even modifying my own LAMW (https://github.com/afuriza/lazandroidmodulewizard). Because, after the LAMW update, it always breaks your app, so keep in mind if you found some LAMW version that stable enough for your usage, keep that version.