Getting android.view.InflateException when loading a map into Marshmallow devices

I am trying to load a map into my Activity fragment and get an XML bloat error. Crash only in Marshmallow (using Micromax AQ4501 - Android 6.0).

While googling I found the same departure script here

I tried the same and the problem is solved by inserting the SD card. But I need the right method to solve this problem. This can be a very rare case, and I can’t go to check the availability of SD on all devices. Try to solve this problem.

Happy coding!

+6
source share
1 answer

The problem was on the "Micro-max Android one mobile", which was 6.0 Marshmallow. This device does not have sufficient internal or external memory space. Doesn't even have an SD card.

I went through many sites and found that the problem is related to updates to Google Play services that require Space (updated Google photos), which were not enough on my device, and also one of the Error lines showed

"Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.io.File.mkdir()' on a null object reference" 

I decided to check after installing the SD card. And it worked

0
source

All Articles