Search code examples
androidandroid-studiovirtualizationarm64android-native-library

Android Studio Native .SO Libraries and ARM virtualisation issue


I have a project targeting ARM64-v8a and Oreo 8.1 It is for a handheld device, not a mobile phone. The problem is I need to use a few prebuilt .SO libraries. I do not have the source-code only the SO-files. I only have .so files for the below architectures: arm64-v8a armeabi armeabi-v7a (created by 3rd party)

Problem is it is almost impossible to debug on a virtual device, since I don't have x86 compatible libs. If I select a x86 virtual device the libs will not load as there is no x86 folder. If I copy libs to a x86 folder. Then the libs will fail because they are not the correct architecture. If I create a virual arm64 device I can only find images for android version 7.1 (available for download in Android Studio) which is not ideal, and it takes about 10minutes to even start-up the virtual device. It is unworkably slow.

Is there some workaround ??

Thanks, Best Regards //Jonas


Solution

  • You can try Genymotion emulator with ARM translator: 8.0 and 8.1. I didn't check first link with 8.1 but it should work too.