Crash with NullPointerException occurring on all Unity LTS versions

There is no test on my side that has passed without crash since June 18th.
There is also a problem with the Google Play Game Services from time to time, but I got an answer about it here:

I also sent a project to @IGuscin

Has anyone found another solution?

Iā€™m not unity developer but iā€™m facing the same issue in my app and canā€™t update my app on the store

Exception java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference
  at android.os.Parcel.createExceptionOrNull (Parcel.java:3189)
  at android.os.Parcel.createException (Parcel.java:3167)
  at android.os.Parcel.readException (Parcel.java:3150)
  at android.database.DatabaseUtils.readExceptionFromParcel (DatabaseUtils.java:202)
  at android.database.DatabaseUtils.readExceptionFromParcel (DatabaseUtils.java:154)
  at android.content.ContentProviderProxy.call (ContentProviderNative.java:764)
  at android.content.ContentResolver.call (ContentResolver.java:2466)
  at android.content.ContentResolver.call (ContentResolver.java:2446)
  at ekfr.a :)com.google.android.gms@242013038@24.20.13 (190400-633713831):29)
  at com.google.android.gms.wallet.intentoperation.setupwizard.PaymentsSetupWizardAccountChangeIntentOperation.onHandleIntent :)com.google.android.gms@242013038@24.20.13 (190400-633713831):252)
  at com.google.android.chimera.IntentOperation.onHandleIntent :)com.google.android.gms@242013038@24.20.13 (190400-633713831):2)
  at ajdw.onHandleIntent :)com.google.android.gms@242013038@24.20.13 (190400-633713831):8)
  at pbh.run :)com.google.android.gms@242013038@24.20.13 (190400-633713831):70)
  at pbg.run :)com.google.android.gms@242013038@24.20.13 (190400-633713831):152)
  at elbx.run :)com.google.android.gms@242013038@24.20.13 (190400-633713831):21)
  at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1145)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:644)
  at java.lang.Thread.run (Thread.java:1012)

any suggested solution ?

The issue seems to be caused by the version of Game Mobile Services on the test devices being outdated. Unless the devices are updated to Google Mobile Services v24.22+, the bugs will persist. My solution is to eliminate the three devices where I see crashes - Google Pixel 8, Google Pixel 5 and Motorola G20 - and skip the review. Then I will add the devices again and follow up on the production issues. Hope that user devices will be up to date :confused:

Hi Dear,
How to eliminate the devices ?
i have already excluded pixel 8 device from device catalogue but still google testing on it in internal testing track.
do you have any suggestion ?

I tried twice yesterday and confirmed that eliminating devices does not solve the pre-launch report issues. Finally, I reported this to Google.
There seems to be no choice except upload a bulid every day and hope that I donā€™t run into problematic devices, but on my side it has been like this for 11 days.

1 Like

I ran 24 tests yesterday with same bundle, only changing the version code, and 5 of them passed without errors lol
It must be false positive.

I donā€™t have a single crash free release, itā€™s really crazy. When I add one of the Admob or Google Play Pames plugins to the project, I always see crashes on same device - Google Pixel 8!

We have exactly the same error and preventing us from releasing updates to our applications.

I am not sure if it is related to Unity or is it the test devices of Google that is faulty. I think someone should contact Google Play, with minimal project.

1 Like

Hi. I am not a Unity developer, but a ReactNative developer, but faced the same problem. Wrote to google tech support, got a reply:

Hello, are you receiving a violation when you try to publish to Production?

I have the same problem.
Error only happened on Google Pixel 8 API 34

Hi there,

Iā€™m experiencing the same issue in my Android Studio project. The error extends beyond Unity or Android Studio; itā€™s a Google issue. In the pre-launch video sent to me after testing my app, I noticed that when the tester clicked on a TikTok banner, a popup dialog appeared, stating that Google Mobile Services needed to be installed or updated.

This indicates that the error is not related to our projects or the development tools we use.

Have made numerous changes trying to resolve the issue, including changing Gradle versions, API levels, and dependencies, but to no avail.

2 Likes

I have the same issue and the game work fine on Google Pixel 8, but on Google Pixel 8 Pro, it has black screen issue.

I made also several build to try to fix the issue, only 1 time it worked and itā€™s when I have clear logs, library and temp folder, but then doing this again, the issue still went back.

It seems to be an issue from the device and we would need to wait them to fix it to have this issue disappearā€¦

I didnā€™t wait for the pre-launch test to complete and sent my app for review. It went live in 10 minutes in Open Testing and Production environments. I will follow up to see if the issues show up on usersā€™ devices.

1 Like

I have the same problem

Maybe I found the solution. Try to add to proguard-user.txt this:

-keep class android.webkit.WebViewClient
-keep class * extends android.webkit.WebViewClient
-keepclassmembers class * extends android.webkit.WebViewClient { <methods>; }

Two builds with this change and no crash in pre-launch report.

1 Like

It seems this helped. There are no more pre-launch anr messages. How does it work? Maybe it was just luckā€¦

ok, maybe this wonā€™t help
first project passed the pre-launch tests 4 times
but the other project failed the pre-launch test with these changes

I was getting this with Unity 2022.3.21f1, targeting Android 33, using Unity In App Purchasing 4.9.4. I upgraded to Unity In App Purchasing 4.12.0 and rebuilt. I ran Firebase Testlab on the resulting aab on a Pixel 8 and it passed.

I am also facing this issue its because of Google play games sdk , I have done so many solutions updating sdks , downgrades there version but no solution