Skip to content Skip to sidebar Skip to footer

MapView Inside Fragment

I have a TabLayout with fragments, and one fragment contains a MapView, but every time the fragment with the MapView comes back from background, throws an error at the moment the f

Solution 1:

The error says, you need the recycler view dependency in your build.gradle or remove the recyclerview. Android is trying to inflate your view, but you dont have the dependency.

To use a recyclerview you need an extra dependency is part of support libraries.

compile 'com.android.support:recyclerview-v7:25.0.0'

More info:

https://developer.android.com/reference/android/support/v7/widget/RecyclerView.html

https://developer.android.com/training/material/lists-cards.html


Post a Comment for "MapView Inside Fragment"