I’ve migrate with my project from 2017.4 to 2018.3.2f1 about month ago. All work correct, so I prepared new update and released to Google Play. After that I started to receive a lot of crash reports. Here’s few examples:
java.lang.Error: FATAL EXCEPTION [Thread-191]
Unity version : 2018.3.2f1
Device model : samsung SM-A520F
Device fingerprint: samsung/a5y17ltexx/a5y17lte:8.0.0/R16NW/A520FXXU4CRF1:user/release-keys
Caused by
at com.unity3d.player.ReflectionHelper.nativeProxyInvoke (Native Method)
at com.unity3d.player.ReflectionHelper.a (Unknown Source)
at com.unity3d.player.ReflectionHelper$1.invoke (Unknown Source:6)
at java.lang.reflect.Proxy.invoke (Proxy.java:913)
at $Proxy8.onAdFailedToLoad (Unknown Source)
at com.google.unity.ads.RewardBasedVideo$1$1$2.run (RewardBasedVideo.java:89)
at java.lang.Thread.run (Thread.java:764)
java.lang.Error: FATAL EXCEPTION [main]
Unity version : 2018.3.2f1
Device model : NOMU_S30 S30
Device fingerprint: alps/s12v55_mle_3m_nomu/s12v55_mle_3m_nomu:6.0/MRA58K/1493209127:user/release-keys
Caused by
at com.unity3d.player.ReflectionHelper.nativeProxyInvoke (Native Method)
at com.unity3d.player.ReflectionHelper.a (Unknown Source)
at com.unity3d.player.ReflectionHelper$1.invoke (Unknown Source)
at java.lang.reflect.Proxy.invoke (Proxy.java:393)
at $Proxy9.onUnityAdsError (Unknown Source)
at com.unity3d.ads.configuration.InitializeThread$InitializeStateError$1.run (InitializeThread.java:420)
at android.os.Handler.handleCallback (Handler.java:815)
at android.os.Handler.dispatchMessage (Handler.java:104)
at android.os.Looper.loop (Looper.java:207)
at android.app.ActivityThread.main (ActivityThread.java:5697)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:905)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:766)
java.lang.UnsatisfiedLinkError:
at com.unity3d.player.ReflectionHelper.nativeProxyInvoke (Native Method)
at com.unity3d.player.ReflectionHelper.a (Unknown Source)
at com.unity3d.player.ReflectionHelper$1.invoke (Unknown Source:6)
at java.lang.reflect.Proxy.invoke (Proxy.java:913)
at $Proxy11.onAdFailedToLoad (Unknown Source)
at com.google.unity.ads.RewardBasedVideo$1$1$2.run (RewardBasedVideo.java:89)
at java.lang.Thread.run (Thread.java:784)
These crashes includes problems with Google Ads and Unity Ads both. I didn’t update ad plugins after migration, so it’s not a cause of problem. Also, I found few similar reports from other developers:
https://groups.google.com/forum/#!category-topic/google-admob-ads-sdk/game-engines/lsbh6MEaY3M
Issues · googleads/googleads-mobile-unity · GitHub (bugs #841-#846)
All of these problems have few similar points:
- they all related with $Proxy class
- they all on Unity 2018.3
I’ve checked changelog and found that Unity devs made two bug fixes in Unity 2018.3 related with AndroidJavaProxy class. I absolutely sure, that it’s a cause of these problems, because no any similar error reports for Unity 2018.2 or earlier. Seems they add new bug into this class during these fixes.
I already sent bug report, but not sure how much time will take preparing update with fix. Hope any workaround exists.