You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a codebase that we use once a year, and now is the time where I am going through and updating all the references and such. I have a snippet of code that seemingly worked last year, but after bumping all of the versions it gives me a runtime error.
val activateOptions = LocationComponentActivationOptions.Builder(requireContext(), it).build()
map.locationComponent.activateLocationComponent(activateOptions)
This code is inside of a map.set_style(...) where it is the style.
I'm getting the following traceback:
drawable/maplibre_user_icon_shadow has unresolved theme attributes! Consider using Resources.getDrawable(int, Theme) or Context.getDrawable(int).
java.lang.RuntimeException
at android.content.res.Resources.getDrawable(Resources.java:908)
at com.mapbox.mapboxsdk.utils.BitmapUtils.getDrawableFromRes(BitmapUtils.java:183)
at com.mapbox.mapboxsdk.utils.BitmapUtils.getDrawableFromRes(BitmapUtils.java:169)
at com.mapbox.mapboxsdk.location.LayerBitmapProvider.generateShadowBitmap(LayerBitmapProvider.java:30)
at com.mapbox.mapboxsdk.location.LocationLayerController.styleBitmaps(LocationLayerController.java:162)
at com.mapbox.mapboxsdk.location.LocationLayerController.applyStyle(LocationLayerController.java:98)
at com.mapbox.mapboxsdk.location.LocationComponent.applyStyle(LocationComponent.java:496)
at com.mapbox.mapboxsdk.location.LocationComponent.activateLocationComponent(LocationComponent.java:255)
We have a codebase that we use once a year, and now is the time where I am going through and updating all the references and such. I have a snippet of code that seemingly worked last year, but after bumping all of the versions it gives me a runtime error.
This code is inside of a map.set_style(...) where
it
is the style.I'm getting the following traceback:
drawable/maplibre_user_icon_shadow has unresolved theme attributes! Consider using Resources.getDrawable(int, Theme) or Context.getDrawable(int).
I'm using
Any help would be much appreciated!
The text was updated successfully, but these errors were encountered: