Status Update
Comments
ma...@google.com <ma...@google.com>
ma...@google.com <ma...@google.com> #2
Thank you for posting.
We'll need some more details to troubleshoot this issue - please provide the following, in particular steps to reproduce the issue:
-
Put together a simplified reproduction case (
http://sscce.org/ ) and add it to a git hosting provider (e.g. github, bitbucket, etc)? The easiest way to do this might be to fork the Google Maps Android API Samples Repository and modify one of the existing demo activities:https://github.com/googlemaps/android-samples -
List steps to reproduce the problem
-
Add the following details:
- Device (and version of Android) you have verified this issue on:
- Google Play Services client library version:
- Google Play Services version on the device:
- Android SDK Version:
- Was this working correctly on a previous version of Google Play Services? (If yes, which client library and SDK version?)
- Attach the following:
- screenshots
- sample code
- an APK if possible.
sh...@gmail.com <sh...@gmail.com> #3
kl...@gmail.com <kl...@gmail.com> #4
em...@gmail.com <em...@gmail.com> #5
na...@gmail.com <na...@gmail.com> #6
Process: com.example, PID: 1036
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@220919084@22.09.19 (150700-0):11)
at com.google.maps.api.android.lib6.gmm6.vector.gl.aj.<init>(:com.google.android.gms.dynamite_mapsdynamite@220919084@22.09.19 (150700-0):4)
at com.google.maps.api.android.lib6.gmm6.vector.gl.g.<init>(:com.google.android.gms.dynamite_mapsdynamite@220919084@22.09.19 (150700-0):18)
at com.google.maps.api.android.lib6.gmm6.vector.bs.d(:com.google.android.gms.dynamite_mapsdynamite@220919084@22.09.19 (150700-0):14)
at com.google.maps.api.android.lib6.gmm6.vector.av.run(:com.google.android.gms.dynamite_mapsdynamite@220919084@22.09.19 (150700-0):44)
implementation 'com.google.android.gms:play-services-maps:18.0.2'
na...@gmail.com <na...@gmail.com> #7
ma...@gmail.com <ma...@gmail.com> #8
li...@gmail.com <li...@gmail.com> #9
ma...@google.com <ma...@google.com>
em...@gmail.com <em...@gmail.com> #10
2. Log LatLng in onMapReady to check null
qu...@gmail.com <qu...@gmail.com> #11
li...@gmail.com <li...@gmail.com> #12
ra...@google.com <ra...@google.com> #13
We'll need some more details to troubleshoot this issue - please provide the following, in particular steps to reproduce the issue:
-
Put together a simplified reproduction case (
http://sscce.org/ ) and add it to a git hosting provider (e.g. github, bitbucket, etc)? The easiest way to do this might be to fork the Google Maps Android API Samples Repository and modify one of the existing demo activities:https://github.com/googlemaps/android-samples -
List steps to reproduce the problem
-
Add the following details:
- Device (and version of Android) you have verified this issue on:
- Google Play Services client library version:
- Google Play Services version on the device:
- Android SDK Version:
- Was this working correctly on a previous version of Google Play Services? (If yes, which client library and SDK version?)
- Attach the following:
- screenshots
- sample code
- an APK if possible.
vu...@gmail.com <vu...@gmail.com> #14
I have tried to catch it but it's not something we can do, since it is happening randomly after some time.
Fresh install works fine.
I have tried with a comment above :
"1.add map?.clear() in onPause and add marker in onResume too.
2. Log LatLng in onMapReady to check null"
But no luck with it.
I have custom marker icons set as bitmaps, but i removed that code and i'm still getting the error.
Error:
Using implementation 'com.google.android.gms:play-services-maps:18.0.2'
Process: com.realgarant.stadel.clientapp.stage, PID: 5323
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@212423120@21.24.23 (190800-0):2)
at com.google.maps.api.android.lib6.gmm6.vector.gl.aj.<init>(:com.google.android.gms.dynamite_mapsdynamite@212423120@21.24.23 (190800-0):2)
at com.google.maps.api.android.lib6.gmm6.vector.gl.g.<init>(:com.google.android.gms.dynamite_mapsdynamite@212423120@21.24.23 (190800-0):18)
at com.google.maps.api.android.lib6.gmm6.vector.bs.d(:com.google.android.gms.dynamite_mapsdynamite@212423120@21.24.23 (190800-0):14)
at com.google.maps.api.android.lib6.gmm6.vector.av.run(:com.google.android.gms.dynamite_mapsdynamite@212423120@21.24.23 (190800-0):45)
replacing library with this one fixes the problem
implementation 'com.google.maps.android:android-maps-utils:2.3.0'
Please investigate what is wrong with the play services library ...
no...@gmail.com <no...@gmail.com> #15
at com.google.maps.api.android.lib6.gmm6.vector.gl.aj.b(:com.google.android.gms.dynamite_mapsdynamite@221820083@22.18.20 (150408-0):2)
at com.google.maps.api.android.lib6.gmm6.vector.gl.aj.<init>(:com.google.android.gms.dynamite_mapsdynamite@221820083@22.18.20 (150408-0):2)
at com.google.maps.api.android.lib6.gmm6.vector.gl.g.<init>(:com.google.android.gms.dynamite_mapsdynamite@221820083@22.18.20 (150408-0):18)
at com.google.maps.api.android.lib6.gmm6.vector.bs.d(:com.google.android.gms.dynamite_mapsdynamite@221820083@22.18.20 (150408-0):14)
at com.google.maps.api.android.lib6.gmm6.vector.av.run(:com.google.android.gms.dynamite_mapsdynamite@221820083@22.18.20 (150408-0):44)
buildscript {
repositories {
google()
jcenter()
maven { url "
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.2'
classpath 'com.jakewharton.hugo:hugo-plugin:1.2.1'
classpath 'com.google.gms:google-services:4.3.10'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.8.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
maven { url "
maven { url '
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
api 'com.google.android.gms:play-services-plus:16.0.0'
api 'com.google.android.gms:play-services-location:16.0.0'
api 'com.google.android.gms:play-services-maps:18.0.2'
api 'com.google.android.gms:play-services-identity:16.0.0'
api 'com.google.firebase:firebase-core:20.0.2'
api 'com.google.firebase:firebase-messaging:23.0.0'
api 'com.google.firebase:firebase-crashlytics:18.2.6'
api 'com.google.firebase:firebase-analytics:20.0.2'
api 'com.google.firebase:firebase-database:19.3.0'
api 'com.google.firebase:firebase-auth:19.3.1'
api 'com.google.firebase:firebase-messaging:20.1.7'
api 'com.google.firebase:firebase-core:17.4.0'
api 'com.google.firebase:firebase-storage:19.1.1'
api 'com.google.android.gms:play-services-analytics:18.0.1'
api 'com.google.code.gson:gson:2.8.5'
api 'com.google.zxing:core:3.2.1'
api 'com.google.apis:google-api-services-youtube:v3-rev212-1.25.0'
api 'com.google.maps.android:android-maps-utils:2.3.0'
sa...@gmail.com <sa...@gmail.com> #16
This issue happend once you're using "Apply code changes" from Android Studio, using normal debugging this won't happen while "Apply code changes" is not used, remove and install app again fix the issue
la...@gmail.com <la...@gmail.com> #17
Phone hacked help
ak...@gmail.com <ak...@gmail.com> #18
ge...@gmail.com <ge...@gmail.com> #19
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="
android:id="@+id/item_maps_in_out_dead"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<fragment
xmlns:map="
android:id="@+id/layout_check_in_out_point"
android:name="com.google.android.gms.maps.SupportMapFragment"
android:layout_width="match_parent"
android:layout_height="@dimen/dp_250"
android:layout_margin="@dimen/dp_3"
map:cameraZoom="10" />
</LinearLayout>
ne...@gmail.com <ne...@gmail.com> #20
The proposed solution with changing map:cameraZoom to "10" works only until next application of changes, in fact any change of this attribute in layout file works and has a similar effect as the clearing of application cache data. So it might have something to do with some "zoom-level based" caching?
kl...@gmail.com <kl...@gmail.com> #21
ra...@google.com <ra...@google.com> #22
Apologies for the delay in our response.
Thanks for the post.
Upon checking, it appears that this is a duplicate of
Description
2022-02-16 12:45:19.428 3151-3747/? E/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@214815081@21.48.15 (150400-0):11)
at com.google.maps.api.android.lib6.gmm6.vector.gl.aj.<init>(:com.google.android.gms.dynamite_mapsdynamite@214815081@21.48.15 (150400-0):3)
at com.google.maps.api.android.lib6.gmm6.vector.gl.g.<init>(:com.google.android.gms.dynamite_mapsdynamite@214815081@21.48.15 (150400-0):18)
at com.google.maps.api.android.lib6.gmm6.vector.bs.d(:com.google.android.gms.dynamite_mapsdynamite@214815081@21.48.15 (150400-0):14)
at com.google.maps.api.android.lib6.gmm6.vector.av.run(:com.google.android.gms.dynamite_mapsdynamite@214815081@21.48.15 (150400-0):44)