-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[Android] Mapbox crashes when run on Genymotion #10685
Comments
+1 |
Same here |
Same here. Using Nexus 5 6.0.0 API 23 simulator with Genymotion, Play services uninstalled (not sure if the last one changes anything tho) |
I am also having this problem, Running Genymotion on Windows with a Samsung Galaxy S8 7.0.0 API 24, using |
After looking at Mapbox Android SDK, probably key thing that isEmulator returns false for Genymotion. It has very simple thing to test if emulator is used. This library: https://github.com/framgia/android-emulator-detector/blob/master/library/src/main/java/com/framgia/android/emulator/EmulatorDetector.java uses more complex method to detect this, and Genymotion is detected from Build.MANUFACTURER. Unfortunately I can't set-up my PC to build this SDK and test if this is really the issue. |
Confirming that 6.0.0 works perfectly fine, whereas 6.0.2 doesn't. |
For reference between versions
|
+1, we can't launch our application on Genymotion anymore from version 5.2 |
We look at the https://github.com/framgia/android-emulator-detector/blob/master/library/src/main/java/com/framgia/android/emulator/EmulatorDetector.java proposed by @wzuo, we make a small modif like below in the "EGLConfigChooser.java" class, that helps us temporally overcome the issue: private boolean inEmulator() { private boolean isGenymotionEmulator() { private boolean buildModelContainsEmulatorHints() { |
@TranThuong thank you for adding that code block. Will look into patching up in our GlSurfaceView config chooser. Adding to the 6.0.0 milestone. |
@TranThuong can you sent me built android lib? I can't manage to compile it, for some reason gradle doesn't detect NDK, even if it's present. And I'm stuck now with application, since 6.0.0 has scrolling bug, and 6.0.2 is not working on emulator. That's how I'm building: |
Hi @tobrun , I still seem to have this problem with the 6.1.3 MapBox Android SDK. I'm using a Google Nexus 4 - 5.0.0 Emulator with Genymotion.
|
I also received a similar crash report in Crashlytics with MapBox version 6.1.3. I don't know if it was run in emulator or not. The reported device is rooted Galaxy Trend2 running Android 4.4.2
|
Mapbox com.mapbox.mapboxsdk:mapbox-android-sdk:5.2.0@aar
Steps:
1). Run the Android app containing map in Genymotion (version 2.11)
2). Crashes:
The text was updated successfully, but these errors were encountered: