javafxmobile-plugin
javafxmobile-plugin copied to clipboard
Installing to Android Virtual Device doesn't work
With GVM (and the previous RoboVM), installation onto an Android Virtual Device (AVD) does not work on OSX or Windows using Android Studio. The installation either never completes or has an error related to an incompatible format (I can't supply the actual error right now).
Many combinations AVB devices have been tried. Please provide a working combination for each platform. This is critical for desktop and cloud based application testing.
PS iOS simulator (launchIPhoneSimulator gradle task) does work, albeit slowly...
We've indeed never had support for running on the android emulator, because we only build the javafxports native part for the armeabi architecture and not for x86, which I believe is required by the emulator. The main reason for us for not supporting x86 is that the architecture is only used on a handful devices these days, with arm being much more popular.
With regard to testing, we always do it on a physical device instead since the emulator used to be pretty slow. I'm not aware if this has changed much lately though so that argument might no longer hold true.
To end on a happy note, I have done some testing lately with building for x86 and it seems I have managed to create a build that runs. I'm going to do some more testing and ping back here when I'm happy with the solution. It will be more a matter of how to distribute the extra architectures.
x86 and arm are support as AVDs but they warn that x86 is 10x faster. I think even the arm install fails if you have the patience to wait for it. I think this is needed b/c not everyone will have the luxury of being able to test on a variety of physical devices and cloud based testing (using emulation) is absolutely required for larger scale testing.
At the very least, I think it needs to be explicitly stated in the docs that AVD is not currently supported... until your work makes it into a release :0)