Skip to content Skip to sidebar Skip to footer

Android Application Unable To Create Soflink To Native Library For 64 Bit Shared Objects

I've an application which has 32 bit native libraries. When I'm reinstalling the same app with 64-bit libraries, It's unable to create lib softlink which is present in data/data/ap

Solution 1:

Yes, I had same issue with 64 bits: I've missed the (not needed) softlink to legacyNativeLibraryDir arm64 in data/data/application-package-name

In order to find the path for native libs (regardless of device architecture) you should use getContext().getApplicationInfo().nativeLibraryDir

Reference: https://developer.android.com/ndk/guides/abis#aen

Post a Comment for "Android Application Unable To Create Soflink To Native Library For 64 Bit Shared Objects"