This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
[Android] IllegalArgumentException: R array length must be 3 or 4 with Samsung Device #9745
Labels
Android
Mapbox Maps SDK for Android
Milestone
Hello, i'm encountering an issue with Samsung Galaxy S4 (GT-I9505) and Android 4.3.
Fatal Exception: java.lang.IllegalArgumentException: R array length must be 3 or 4 at android.hardware.SensorManager.getRotationMatrixFromVector(SensorManager.java:1336) at com.mapbox.mapboxsdk.maps.widgets.MyLocationView$CompassListener.onSensorChanged(MyLocationView.java:821) at android.hardware.SystemSensorManager$SensorEventQueue.dispatchSensorEvent(SystemSensorManager.java:467)
It seems a known issue on Samsung devices when they owns more 4 vector sensors.
**Platform:4.3
**Mapbox SDK version:5.1.0
Steps to trigger behavior
map.getTrackingSettings().setMyBearingTrackingMode(MyBearingTracking.COMPASS)
Expected behavior
No crash :)
Actual behavior
throw IllegalArgumentException on Samsung device
The text was updated successfully, but these errors were encountered: