小编Ela*_*vin的帖子

Native libraries not found in ApplicationInfo.nativeLibraryDir when building app bundle for arm64 Android phone

I am trying to migrate my app from a monolithic APK to the app bundle format. I need to set LD_LIBRARY_PATH environment variable for an exec() call, therefore I need the location of my native libraries. With the original APK I would call getApplicationInfo().nativeLibDir and the libraries were there.

With the app bundle they are not. I can see the correct abi split APK installed, but for some reason the libraries are not extracted.

I have tried installing with …

android android-ndk android-studio android-app-bundle

3
推荐指数
1
解决办法
617
查看次数