mapbox-gl-native icon indicating copy to clipboard operation
mapbox-gl-native copied to clipboard

Error with mapBox

Open HoussemHfaidh opened this issue 10 years ago • 5 comments

Hi, I try to install Mapbox mapbox-gl-native Android but i have this error : " Couldn't load mapbox-gl from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.mapbox.mapboxsdk.testapp-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.mapbox.mapboxsdk.testapp-2, /vendor/lib, /system/lib]]]: findLibrary returned null"

Have you any idea of the problem?

HoussemHfaidh avatar May 11 '16 06:05 HoussemHfaidh

Hi, looks quite familiar I believe, when it happened to me sometimes I already had the app installed but tried to install a newer version from android studio. Manually uninstalling the app from the device and trying again helped.

Schumi09 avatar May 11 '16 10:05 Schumi09

Hi, Thank you ,but the version of android studio is 1.5.1 ?

HoussemHfaidh avatar May 11 '16 10:05 HoussemHfaidh

The latest version of Android Studio is 2.1

Schumi09 avatar May 11 '16 10:05 Schumi09

@HoussemHfaidh To run the sample app from the repository you need to build the AAR from source first. Here are the installation instructions for the OSX platform to install the dependencies. Afterwards you can execute make android in the root of the project to build the AAR file.

If you just want to use the library, not build it from source yourself, you can follow these instructions.

tobrun avatar May 11 '16 10:05 tobrun

Thanks for your help @Schumi09 @tobrun

HoussemHfaidh avatar May 11 '16 11:05 HoussemHfaidh