Skip to content Skip to sidebar Skip to footer

Java.lang.nullpointerexception For Google Map Api V2

I have been trying to solve this issue for ages and I can't find where the problem is. I am having trouble only with some devices that run Android 2.2. I tested on Android 4.1.2 a

Solution 1:

Try moving all code that references your GoogleMap to onStart() or onResume(). The map in a map fragment isn't instantiated until after the fragment has gone through onCreateView (link). Also, you need to check your googleMap for null, because if google play services aren't installed, or the map isn't available for some other reason, it will be null.


Post a Comment for "Java.lang.nullpointerexception For Google Map Api V2"