gluonhq / gluonfx-maven-plugin

Plugin that simplifies creating native images for Java/JavaFX maven projects
BSD 3-Clause "New" or "Revised" License
186 stars 38 forks source link

How to run APK with Android Emulators > then Android 11? #497

Open ctoabidmaqbool1 opened 7 months ago

ctoabidmaqbool1 commented 7 months ago

Hi, Devs! Android AVD, Emulators's API Level > 30 comes with only ABI Level e.g. x86_64 or arm64_v8a.

image

Now emulators build upon arm64_v8a can't be run on x64 bit windows at all.

So i think, currently there is no way to currently run APK build with gluonfx-maven-plugin with emulators greter then Android 11?

When trying to import HelloFX.apk made with gluonfx-maven-plugin it's shows following error: image

I try to open Apk file with WinRar it's looks like it's build for only arm64_v8a architecture.

image

Note: It's not possible for every developer to arrange physical Android device for testing! How to solve the issue?

ctoabidmaqbool1 commented 7 months ago

@johanvos @jperedadnr Is it currently not possible to supports more Addroid architectures / ABI Level e.g. x86_64, x86 or armeabi-v7a (fat APK build). Currently only support is for arm64-v8a! https://developer.android.com/ndk/guides/abis#gradle https://developer.android.com/google/play/requirements/64-bit#build-with-64-bit

ctoabidmaqbool1 commented 5 months ago

As mentioned here: Android 9 and Android 11 system images support ARM abi levels:

https://developer.android.com/studio/releases/emulator#30-0-0 https://developer.android.com/studio/releases/emulator#support_for_arm_binaries_on_android_9_and_11_system_images

arm64-v8a, armeabi-v7a