Ali Khoshraftar
Ali Khoshraftar

Reputation: 542

google map inflate exception on Android 8.0

We are developing an app that uses the google map sdk. the only problem is that the app crashes on android 8 and above. all other versions doesn't has any problem.

After passing intro activity and getting permissions, on Main Activity onCreate in set content view it appears.

The logcat error messages are:

E/AndroidRuntime:     at android.content.res.TypedArray.getDrawableForDensity(TypedArray.java:953)
  at android.graphics.drawable.AdaptiveIconDrawable.updateLayerFromTypedArray(AdaptiveIconDrawable.java:516)
  at android.graphics.drawable.AdaptiveIconDrawable.inflateLayers(AdaptiveIconDrawable.java:480)
  at android.graphics.drawable.AdaptiveIconDrawable.inflate(AdaptiveIconDrawable.java:229)
  at android.graphics.drawable.DrawableInflater.inflateFromXmlForDensity(DrawableInflater.java:142)
  at android.graphics.drawable.Drawable.createFromXmlInnerForDensity(Drawable.java:1295)
  at android.graphics.drawable.Drawable.createFromXmlForDensity(Drawable.java:1254)
  at android.content.res.ResourcesImpl.loadDrawableForCookie(ResourcesImpl.java:791)
  at android.content.res.ResourcesImpl.loadDrawable(ResourcesImpl.java:621)
  at android.content.res.Resources.loadDrawable(Resources.java:886)
  at android.content.res.TypedArray.getDrawableForDensity(TypedArray.java:953)
  at android.graphics.drawable.AdaptiveIconDrawable.updateLayerFromTypedArray(AdaptiveIconDrawable.java:516)
  at android.graphics.drawable.AdaptiveIconDrawable.inflateLayers(AdaptiveIconDrawable.java:480)
  at android.graphics.drawable.AdaptiveIconDrawable.inflate(AdaptiveIconDrawable.java:229)
  at android.graphics.drawable.DrawableInflater.inflateFromXmlForDensity(DrawableInflater.java:142)
  at android.graphics.drawable.Drawable.createFromXmlInnerForDensity(Drawable.java:1295)
  at android.graphics.drawable.Drawable.createFromXmlForDensity(Drawable.java:1254)
  at android.content.res.ResourcesImpl.loadDrawableForCookie(ResourcesImpl.java:791)
  at android.content.res.ResourcesImpl.loadDrawable(ResourcesImpl.java:621)
  at android.content.res.Resources.loadDrawable(Resources.java:886)
  at android.content.res.TypedArray.getDrawableForDensity(TypedArray.java:953)
  at android.graphics.drawable.AdaptiveIconDrawable.updateLayerFromTypedArray(AdaptiveIconDrawable.java:516)
  at android.graphics.drawable.AdaptiveIconDrawable.inflateLayers(AdaptiveIconDrawable.java:480)
  at android.graphics.drawable.AdaptiveIconDrawable.inflate(AdaptiveIconDrawable.java:229)
  at android.graphics.drawable.DrawableInflater.inflateFromXmlForDensity(DrawableInflater.java:142)
  at android.graphics.drawable.Drawable.createFromXmlInnerForDensity(Drawable.java:1295)
  at android.graphics.drawable.Drawable.createFromXmlForDensity(Drawable.java:1254)
  at android.content.res.ResourcesImpl.loadDrawableForCookie(ResourcesImpl.java:791)
  at android.content.res.ResourcesImpl.loadDrawable(ResourcesImpl.java:621)
  at android.content.res.Resources.loadDrawable(Resources.java:886)
  at android.content.res.TypedArray.getDrawableForDensity(TypedArray.java:953)
  at android.graphics.drawable.AdaptiveIconDrawable.updateLayerFromTypedArray(AdaptiveIconDrawable.java:516)
  at android.graphics.drawable.AdaptiveIconDrawable.inflateLayers(AdaptiveIconDrawable.java:480)
  at android.graphics.drawable.AdaptiveIconDrawable.inflate(AdaptiveIconDrawable.java:229)
  at android.graphics.drawable.DrawableInflater.inflateFromXmlForDensity(DrawableInflater.java:142)
  at android.graphics.drawable.Drawable.createFromXmlInnerForDensity(Drawable.java:1295)
  at android.graphics.drawable.Drawable.createFromXmlForDensity(Drawable.java:1254)
  at android.content.res.ResourcesImpl.loadDrawableForCookie(ResourcesImpl.java:791)
  at android.content.res.ResourcesImpl.loadDrawable(ResourcesImpl.java:621)
  at android.content.res.Resources.loadDrawable(Resources.java:886)
  at android.content.res.TypedArray.getDrawableForDensity(TypedArray.java:953)
  at android.graphics.drawable.AdaptiveIconDrawable.updateLayerFromTypedArray(AdaptiveIconDrawable.java:516)
  at android.graphics.drawable.AdaptiveIconDrawable.inflateLayers(AdaptiveIconDrawable.java:480)
  at android.graphics.drawable.AdaptiveIconDrawable.inflate(AdaptiveIconDrawable.java:229)
  at android.graphics.drawable.DrawableInflater.inflateFromXmlForDensity(DrawableInflater.java:142)

Upvotes: 0

Views: 331

Answers (1)

DropAndTrap
DropAndTrap

Reputation: 1630

Please Check the Any DPI in the App resouce Folder. You must handle it.

Upvotes: 1

Related Questions