Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google maps crashes in every screen that containing map ('int android.graphics.Bitmap.getWidth()' on a null object reference)

Tags:

android

Suddenly Google maps crashes in every screen that containing map which cause app crash.

AndroidRuntime: FATAL EXCEPTION: GLThread 56854
Process: com.interface_fze.dawana.pharmacy, PID: 3151
java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference
    at com.google.maps.api.android.lib6.gmm6.vector.gl.aj.b(:com.google.android.gms.dynamite_mapsdynamite@[email protected] (150400-0):11)
    at com.google.maps.api.android.lib6.gmm6.vector.gl.aj.<init>(:com.google.android.gms.dynamite_mapsdynamite@[email protected] (150400-0):3)
    at com.google.maps.api.android.lib6.gmm6.vector.gl.g.<init>(:com.google.android.gms.dynamite_mapsdynamite@[email protected] (150400-0):18)
    at com.google.maps.api.android.lib6.gmm6.vector.bs.d(:com.google.android.gms.dynamite_mapsdynamite@[email protected] (150400-0):14)
    at com.google.maps.api.android.lib6.gmm6.vector.av.run(:com.google.android.gms.dynamite_mapsdynamite@[email protected] (150400-0):44)
like image 700
Harsh Patel Avatar asked Jun 09 '26 19:06

Harsh Patel


1 Answers

I fixed issue by adding implementation 'com.google.maps.android:android-maps-utils:2.3.0' in app level build.gradle

Source

like image 151
Harsh Patel Avatar answered Jun 12 '26 08:06

Harsh Patel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!