Android Navigation StreetViewPanoramaFragment throws fatal class cast exception

Ok, I found the solution. Instead of Extending StreetViewPanoramaFragment in the Kotlin file, I extend Fragment, and in the layout file

<fragment xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/street_fragment"
android:name="com.google.android.gms.maps.StreetViewPanoramaFragment"

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top