Javafx app crashes when running on android phone - javafx

I converted a hello world javafx .jar into .apk using eclipse, gluon and gradle, I successfully installed it on an android phone, but it's not working, it crashes anytime I try to run it. It shows "unfortunately, MyHelloWorldApp has stopped". Please, how should I fix this?

Related

Release mode app not installed on other device

I run a Xamarin.Forms project on Release mode on my device. It's installed on my device. When I share the app to other device, the app is not installed. It shows the error like "App not installed"
Please see the logcat output here:
Can any one please help me to resolve this issue.

Xamarin - iOS is always building same version

I'm working on a multi OS app in Xamarin Forms, for Android and iOS.
Everything's fine with android compilation and deploy, but it's not that easy on iOS.
Visual Studio still deploy the same version again and again, like it's stuck somewhere in past.
Is there a cache to clean somewhere? The iOS app is displaying labels which are no more in my code, so it's probably a cache issue.
I tryied to clean the whole solution, in vain.
I deploy on a macOS virtual machine, hosted with VMware workstation. VS and xcode are installed on it.
There is an example of same page displayed in ios and android..

Android Debugging Failing With "Couldn't connect to logcat, GetProcessId returned: 0" FFImageLoading.Platform.dll.so Not Found

I am having issue debugging Android project. I can deploy to device and run it, all works fine but if I try to debug, the app gets deployed to the device and very briefly opened, splash screen shows up but the app then closes.
I am using Xamarin Forms on Visual Studio 2015.
Device is running Android Oreo (8.0.0). Another device running Android 6.0.1 is debugging fine.
The output shows following:
InspectorDebugSession(11): StateChange: Start -> EntryPointBreakpointRegistered
InspectorDebugSession(11): Constructed
Android application is debugging.
InspectorDebugSession(11): HandleTargetEvent: TargetExited
InspectorDebugSession(11): Disposed
Couldn't connect to logcat, GetProcessId returned: 0
I checked Logcat and it seem to be having issues finding FFImageLoading library:
Time Device Name Type PID Tag Message
09-18 14:35:52.361 Huawei Nexus 6P Debug 1560 Mono AOT:
image '/usr/local/lib/mono/aot-cache/arm/FFImageLoading.Platform.dll.so'
not found: dlopen failed: library "/data/app/myapp.android.dev-
WEb1bz8edgF7vwx6uCoZ-A==/lib/arm/libaot-FFImageLoading.Platform.dll.so" not found
I have added Nuget package for FFImageLoading to my projects and Droid project references show it as in image below:
This worked for me :-
Deselecting the 'Use Shared Runtime' in Project Properties > Android
Options > Packaging properties
I also had this issue with Android 8.1 and Visual Studio 2017 15.7.4.
There are three steps to got it working again.
Under Android Options, go to Advanced and add your device architecture, in my case it was x86_64.
Go to Tools -> Options -> Xamarin > Android Settings and enable: Provide debug symbols for shared runtime and base class libraries.
And the final step is to delete following Apps from your device:
All Xamarin.Android API Support libraries
Mono Shared Runtime
Your App
After these steps you don't need to disable "Use Shared Runtime" and can Deploy and Debug much faster.
This is a known issue with Oreo and Xamarin Android on Visual Studio for Windows. It works on Visual Studio for Mac apparently. It will be fixed in an upcoming release. In the mean time there is a work around down near the bottom of the bug link above (comment 20).
deselecting 'Use Shared Runtime' in Project Properties > Android Options
delete bin & obj files from solution
clean solution
rebuild the solution it works
One another reason for that is if you dont enable usb debugging on your device, VS 2017 still recognizes your phone and installs the app on your phone. Just after debugging starts, it will throw this error and not continue debugging. Make sure to enable Developer Mode -> Usb debugging like described here
https://learn.microsoft.com/en-us/xamarin/android/get-started/installation/set-up-device-for-development

Can't run FlexUnit test on android device (run gets stuck on 57%)

I have a problem with running FlexUnit test (and application in debug mode) on android device.
All fine if I use run project -> export release build and manually send apk to device.
But if I try to run FlexUnit test, the process gets stuck exactly on 57%. If there is no Adobe AIR on my device, Flash Builder tries to install AIR. If AIR is installed on a device, Builder tries to install test application.
But in both cases process gets stuck on 57% without any error.
I've tried to clean project, change workspace, restart my computer, install on different devices and emulators - no luck.
Can you guys advise something?
Some technical details:
FlashBuilder 4.6
Apache Flex 4.15.0
AIR 24.0
AIR on android device 24.0.0.180
Android 6.0, 5.0, 4.4.2

Adobe Air - Blackberry app does not launch on device

I am using FlashBuilder 4.7 with the latest Blackberry OS Tablet SDK.
I installed the SDK and published my app (After going throug the signing process to make sure the app is signed).
When running the game on a blackberry simulator all is well.
BUT - When installing the app on the actual device (clicking on the icon) the application simply does not launch.
Any help will be much appreciated.
Koby.
Never publish at the AppWorld without trying at the device first.
Either try debugging on the BB10 device - using the Flash Builder and watch the logs:
Or build the release .bar file and install it to your BB10 device using the blackberry-deploy.bat -installApp .... -password .... or DDPBInstaller

Resources