-
Notifications
You must be signed in to change notification settings - Fork 1.3k
The test application won't compile with the given dependencies #13353
Comments
Sorry, NDK r18 is currently blocked on the removal of We haven't seen multiple versions of libmapbox-gl.so being produced; that looks like a bug. Did you try clearing the build directory after you downgraded the NDK? You can run
|
Ah, I'll keep my eyes on #13049 then! I tried 'make clean' and also clean build folder in Android Studio. |
I found a version of r17b after some searching but I am experiencing the same issue with that version as well unfortunately (can not compile due to more than one file called libmapbox-gl.so).
|
@albintornqvist your setup matches my setup locally.
Can you execute a |
The ndk 12-stacktrace sure is suspicious. I tried cloning the Mapbox repo fresh in a new folder and now it works like a charm. I should have tried that earlier of course... I'm guessing I had old compiled files somewhere in my previous local repo that wasn't deleted when running Thank you for taking the time to answer my questions and pinpointing the problem! |
Glad it works for you now! |
After following the steps in the readme of the Android project i can't seem to get the project to build properly. The readme suggests using the latest version of NDK but after some digging i found out that I have to use version 17 of NDK to be able to compile. (Maybe the readme should specify the version?). When using NDK 17 compilation goes further but i still get an error:
I tried adding the following to get rid of this error:
This makes the project compile but the test app crashes as soon as i run it on the emulator (using a Pixel 2 XL on API 26 emulator).
Crash log:
Am I missing something here? Some dependency version not specified in the readme? Does anyone recognize the issue?
Steps to reproduce
android-v6.6.7
orandroid-v6.0.1
and use NDK 16 (not sure if correct version)Expected behavior
The project compiles and the app runs on the device/emulator.
Actual behavior
Build error or crash.
Configuration
Android versions: Android 8.0, API 26
Device models: Samsung SM-G955F or Emulator: Pixel XL 2
Mapbox SDK versions: 6.0.1 or 6.6.7
Android Studio version: 3.2.1
OS version: MacOS Mojave 10.14
The text was updated successfully, but these errors were encountered: