Native files missing after exporting project for native Android

Hi, I have a project where I’m testing 3D maps by using BingSDK for Unity.

Maps work in Unity and in preview on Android via Unity Remote but, I wanted to export the project into .aar file and run it on native Android. After I do this and import .aar files into Android Studio project the maps won’t show up except green blank screen is presented and the console is telling me that some native files are missing.

This is the error I’m getting:

System.DllNotFoundException: Unable to load DLL ‘MicrosoftGeospatialDecompressionNative’: The specified module could not be found.

If anyone had similar experience or can suggest a solution you are more then welcome. Thanks in an advance.

First you want to make sure the library is being included on the Android build. Select MicrosoftGeospatialDecompressionNative.dll in your project tab and check the inspector tab to see if it’s being included on Android.

Then check if it’s present in the Android App Manifest that’s created when you export to Android Studio. If not, you should be able to override the manifest.

It says you can inspect the manifest and see which libraries are included using Android Studio’s APK Analyser or APKTool. These work for both .apk and .aab.