Lazarus
Programming => Operating Systems => Android => Topic started by: Takeda on October 02, 2018, 01:01:52 pm
-
Hello... Today I test jImageView.. Everything is OK.. Build APK it's successful. Unfortunately when deploy on emulator and also real device it was crash.
I attach the test project which crash on runtime (deployed on real device).
How to produce the bug :
1. Drop jImageList, jImageView
2. Add any picture into jImageList
3. Link jImageList to jImageView, choose any image in jImageList
4. Build the apk (successful)
5. Run the app then you’ll get crash when it run on device.
Test project attached
I tested on :
1. Android 6.0 and 7.12
2. Without jImageView and jImageList everything is running as expected.
Best regards,
Takeda
-
I have no problem running it on my Redmi 4X Android 7.1.2 compiled using Lazarus 1.8.4 LAMW 0.8 revision 754.
My first attempt building the apk was failed, I got this error:
Unable to resolve project target 'android-28'
I remember I only have SDK API25 installed. So after I changed the setting to API25, now I can build it without any issue and it seems to run properly on my phone.
-
If anyone want to try the apk I built, here is the file:
-
I have no problem running it on my Redmi 4X Android 7.1.2 compiled using Lazarus 1.8.4 LAMW 0.8 revision 754.
My first attempt building the apk was failed, I got this error:
Unable to resolve project target 'android-28'
I remember I only have SDK API25 installed. So after I changed the setting to API25, now I can build it without any issue and it seems to run properly on my phone.
I used Lazarus 2.x fixes Branch + FPC 3.2 Fixes Branch was failed when I run the apk. Even when I downgrade into Android API 25.
Strange..
-
If anyone want to try the apk I built, here is the file:
Here my apk
-
I tested your apk. The app crashed and existed immediately.
How did you compile/build the apk? Did you use laztoapk and Gradle? I do not use laztoapk, I install the LAMW manually. To build apk, I use Ant by running the debug/release script.
-
I tested your apk. The app crashed and existed immediately.
How did you compile/build the apk? Did you use laztoapk and Gradle? I do not use laztoapk, I install the LAMW manually. To build apk, I use Ant by running the debug/release script.
Hi, Handoko
I used :
1. Android NDK v11c
2. Using latest LAMW (Updated today)
3. Build using like what you did
4. Using JDK 1.8.0_181
5. Apache ANT 1.9.6
I'm not using LazToApk. Install LAMW Manually.