I'm currently following a tutorial for an Uber clone and at this part
carMarker = mMap.addMarker(new MarkerOptions()
.position(currentPosition)
.flat(true)
.icon(BitmapDescriptorFactory.fromResource(R.drawable.car)));
where we add the marker of the car into the current position for moving it from point to point, the app crashes and the debbuger says "Failed to decode image. The provided image must be a Bitmap".
The 'car' image is a png file inside the drawable folder, I've tryied some solutions as Custom marker in google maps in android with vector asset icon and others, but none actually solved.
Can anyone help here? For me it looks like it's all fine: the image is a png file, it's on the drawable folder, why is it not considering as a bitmap?