Unity Ads Android Game Crash On Advertisement.Initialize

Hi!
I am using unity 2020.3.14 and unity advertisement version 3.7.5. when i initialize unity ads my game is crash. for test i create new project and only add unity advertisement plugin and test it. result same my game is crash on start.

2 Likes

I am seeing this as well. Anybody else seeing it? Can somebody from Unity please comment on this?

Summary: Create a new project in 2020.3.17. Import Unity Advertisement package 3.7.5. Add a script to initialize the Ads. Build for Android. Run on Android. App quits (crashes) on Initialize().

TL;DR;
Also tried this with 2020.3.17 and Ads package 3.5.0, 3.7.2, 3.7.1. All have the same result - crash.
Also tried with 2020.3.16. Same result: crash.
Tried with 2019.4.29. It works.

Help!

Seems crazy to me that a problem this big slipped through and there isnā€™t more chatter on the boards about it. That tells me that maybe it is something specific to my setupā€¦

Theories on what might be going on:

  1. 2020.3.16/17 has a bug. Now installing 2020.3.11 to test.
  2. My App id and placements were created a while ago, before the Unity changeover to Ad Units. They are currently working in my released version of the app based on 2019.4.x. Maybe they are they issue causing Initialize to crash. Will try to create new ones if Step 1. keeps producing crashes.
  3. Mysterio is using EDITH to mess with me

Found the problem after seeing this thread:

Crash when migrating from 2019.3.3f1 to 2020.1.4f1 due to UnityAdsSettings_Get_Custom_PropTestMode() - Unity Forum

In summary:
If your local Unity Project isnā€™t linked to a ā€œUnity Projectā€ created on the Unity website dashboard which has Ads enabled, the Unity Ads package will crash when Initialize() is called on either the IOS or Android platforms. It did not crash when run in the Editor.

The Unity Ads project linking did not carry over when the project upgraded from 2019 to 2020. Thatā€™s why my original project crashed.

When I created my test projects, I didnā€™t link them to a project on the website. Thatā€™s why they crashed in 2020. Apparently 2019 is more forgiving about not linking.

To Unity Support: It would be nice if this behavior was fixed and a warning was issued to the logs if the project isnā€™t linked up (instead of crashing).

2 Likes

Hi,

I am sorry that you meet such a problem. May you provide us your full device logs or your app links? If you would like better support, you can create a support ticket through unityads-support@unity3d.com.

I found solution. If I use unity ads through id and not link in services then my game is crash. I link through service window and enable ads in service window app working fine

Unity Version : unity 2020.3.20, 2021.1.25f1
Uniy ADS : 3.7.5

When i initialize unity ads ,Crash always occurs.

This is logcat log.

0001-01-01 00:00:00.000 -1 -1 Info --------- beginning of main
2021-10-17 04:14:50.536 1297 1297 Error Zygote isWhitelistProcess - Process is Whitelisted
2021-10-17 04:14:50.544 1297 1297 Error Zygote accessInfo : 1
2021-10-17 04:14:50.551 1297 1297 Info vy.fleet.comba Late-enabling -Xcheck:jni
2021-10-17 04:14:51.004 1297 1371 Debug vndksupport Loading /vendor/lib64/egl/libGLES_mali.so from current namespace instead of sphal namespace.
2021-10-17 04:14:51.074 1297 1371 Debug libEGL loaded /vendor/lib64/egl/libGLES_mali.so
2021-10-17 04:14:51.104 1297 1297 Info IL2CPP JNI_OnLoad
2021-10-17 04:14:51.109 1297 1297 Debug OpenGLRenderer Skia GL Pipeline
2021-10-17 04:14:51.125 1297 1297 Info DecorView createDecorCaptionView >> DecorView@639a8e4[ ], isFloating: false, isApplication: true, hasWindowDecorCaption: false, hasWindowControllerCallback: true
2021-10-17 04:14:51.159 1297 1297 Debug EmergencyMode [EmergencyManager] android createPackageContext successful
2021-10-17 04:14:51.173 1297 1297 Debug InputTransport Input channel constructed: fd=56
2021-10-17 04:14:51.175 1297 1297 Debug ViewRootImpl@889de4e[UnityPlayerActivity] setView = DecorView@639a8e4[UnityPlayerActivity] TM=true MM=false
2021-10-17 04:14:51.181 1297 1297 Verbose InputMethodManager Not IME target window, ignoring
2021-10-17 04:14:51.182 1297 1297 Debug SurfaceView onWindowVisibilityChanged(0) true android.view.SurfaceView{2c39b6f VFEā€¦ .Fā€¦I. 0,0-0,0 #7f05005a app:id/unitySurfaceView} of ViewRootImpl@889de4e[UnityPlayerActivity]
2021-10-17 04:14:51.182 1297 1297 Debug ViewRootImpl@889de4e[UnityPlayerActivity] dispatchAttachedToWindow
2021-10-17 04:14:51.209 1297 1297 Debug ViewRootImpl@889de4e[UnityPlayerActivity] Relayout returned: old=[0,0][2960,1440] new=[0,0][2220,1080] result=0x7 surface={valid=true 500380688384} changed=true
2021-10-17 04:14:51.218 1297 1297 Debug SurfaceView show() Surface(name=SurfaceView - kr.co.myschoollife.testapp/com.unity3d.player.UnityPlayerActivity@2c39b6f@0[1297])/@0xd7f307c android.view.SurfaceView{2c39b6f VFEā€¦ .Fā€¦ID 0,0-2058,1080 #7f05005a app:id/unitySurfaceView}
2021-10-17 04:14:51.223 1297 1297 Debug SurfaceView surfaceCreated 1 #8 android.view.SurfaceView{2c39b6f VFEā€¦ .Fā€¦ID 0,0-2058,1080 #7f05005a app:id/unitySurfaceView}
2021-10-17 04:14:51.224 1297 1297 Debug SurfaceView surfaceChanged (2058,1080) 1 #8 android.view.SurfaceView{2c39b6f VFEā€¦ .Fā€¦ID 0,0-2058,1080 #7f05005a app:id/unitySurfaceView}
2021-10-17 04:14:51.234 1297 1297 Debug ViewRootImpl@889de4e[UnityPlayerActivity] Relayout returned: old=[0,0][2220,1080] new=[0,0][2220,1080] result=0x3 surface={valid=true 500380688384} changed=false
2021-10-17 04:14:51.247 1297 1297 Debug vndksupport Loading /vendor/lib64/hw/android.hardware.graphics.mapper@2.0-impl.so from current namespace instead of sphal namespace.
2021-10-17 04:14:51.266 1297 1297 Debug ViewRootImpl@889de4e[UnityPlayerActivity] MSG_RESIZED_REPORT: frame=Rect(0, 0 - 2220, 1080) ci=Rect(162, 0 - 0, 0) vi=Rect(162, 81 - 0, 0) or=2
2021-10-17 04:14:51.266 1297 1297 Debug ViewRootImpl@889de4e[UnityPlayerActivity] MSG_WINDOW_FOCUS_CHANGED 1 1
2021-10-17 04:14:51.269 1297 1297 Debug InputMethodManager prepareNavigationBarInfo() DecorView@639a8e4[UnityPlayerActivity]
2021-10-17 04:14:51.269 1297 1297 Debug InputMethodManager getNavigationBarColor() -855310
2021-10-17 04:14:51.295 1297 1297 Debug InputMethodManager prepareNavigationBarInfo() DecorView@639a8e4[UnityPlayerActivity]
2021-10-17 04:14:51.295 1297 1297 Debug InputMethodManager getNavigationBarColor() -855310
2021-10-17 04:14:51.295 1297 1297 Verbose InputMethodManager Starting input: tba=kr.co.myschoollife.testapp ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
2021-10-17 04:14:51.296 1297 1297 Debug InputMethodManager startInputInner - Id : 0
2021-10-17 04:14:51.296 1297 1297 Info InputMethodManager startInputInner - mService.startInputOrWindowGainedFocus
2021-10-17 04:14:51.310 1297 1392 Info Unity MemoryManager: Using ā€˜Dynamic Heapā€™ Allocator.
2021-10-17 04:14:51.321 1297 1324 Debug InputTransport Input channel constructed: fd=63
2021-10-17 04:14:51.324 1297 1392 Warn vy.fleet.comba Accessing hidden method Ljava/lang/invoke/MethodHandles$Lookup;->(Ljava/lang/Class;I)V (light greylist, reflection)
2021-10-17 04:14:51.328 1297 1297 Debug ViewRootImpl@889de4e[UnityPlayerActivity] MSG_RESIZED_REPORT: frame=Rect(0, 0 - 2220, 1080) ci=Rect(162, 0 - 0, 0) vi=Rect(162, 0 - 0, 0) or=2
2021-10-17 04:14:51.329 1297 1297 Debug InputMethodManager prepareNavigationBarInfo() DecorView@639a8e4[UnityPlayerActivity]
2021-10-17 04:14:51.329 1297 1297 Debug InputMethodManager getNavigationBarColor() -855310
2021-10-17 04:14:51.329 1297 1297 Verbose InputMethodManager Starting input: tba=kr.co.myschoollife.testapp ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false

2021-10-17 04:14:51.329 1297 1297 Debug InputMethodManager startInputInner - Id : 0
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba Rejecting re-init on previously-failed class java.lang.Class<com.unity3d.player.AssetPackManagerWrapper$b>: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/play/core/assetpacks/AssetPackStateUpdateListener;
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba at boolean com.unity3d.player.UnityPlayer.nativeRender() ((null):-2)
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba at boolean com.unity3d.player.UnityPlayer.access$300(com.unity3d.player.UnityPlayer) ((null):-1)
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba at boolean com.unity3d.player.UnityPlayer$e$1.handleMessage(android.os.Message) ((null):-1)
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba at void android.os.Looper.loop() (Looper.java:214)
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba at void com.unity3d.player.UnityPlayer$e.run() ((null):-1)
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba Caused by: java.lang.ClassNotFoundException: Didnā€™t find class ā€œcom.google.android.play.core.assetpacks.AssetPackStateUpdateListenerā€ on path: DexPathList[[zip file ā€œ/data/app/kr.co.myschoollife.testapp-hddsEVrpIhNgleKh8cGOmw==/base.apkā€],nativeLibraryDirectories=[/data/app/kr.co.myschoollife.testapp-hddsEVrpIhNgleKh8cGOmw==/lib/arm64, /data/app/kr.co.myschoollife.testapp-hddsEVrpIhNgleKh8cGOmw==/base.apk!/lib/arm64-v8a, /system/lib64, /system/vendor/lib64]]
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:134)
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379)
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba at boolean com.unity3d.player.UnityPlayer.nativeRender() ((null):-2)
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba at boolean com.unity3d.player.UnityPlayer.access$300(com.unity3d.player.UnityPlayer) ((null):-1)
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba at boolean com.unity3d.player.UnityPlayer$e$1.handleMessage(android.os.Message) ((null):-1)
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba at void android.os.Looper.loop() (Looper.java:214)
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba at void com.unity3d.player.UnityPlayer$e.run() ((null):-1)
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba Rejecting re-init on previously-failed class java.lang.Class<com.unity3d.player.AssetPackManagerWrapper$b>: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/play/core/assetpacks/AssetPackStateUpdateListener;
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba at boolean com.unity3d.player.UnityPlayer.nativeRender() ((null):-2)
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba at boolean com.unity3d.player.UnityPlayer.access$300(com.unity3d.player.UnityPlayer) ((null):-1)
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba at boolean com.unity3d.player.UnityPlayer$e$1.handleMessage(android.os.Message) ((null):-1)
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba at void android.os.Looper.loop() (Looper.java:214)
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba at void com.unity3d.player.UnityPlayer$e.run() ((null):-1)
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba Caused by: java.lang.ClassNotFoundException: Didnā€™t find class ā€œcom.google.android.play.core.assetpacks.AssetPackStateUpdateListenerā€ on path: DexPathList[[zip file ā€œ/data/app/kr.co.myschoollife.testapp-hddsEVrpIhNgleKh8cGOmw==/base.apkā€],nativeLibraryDirectories=[/data/app/kr.co.myschoollife.testapp-hddsEVrpIhNgleKh8cGOmw==/lib/arm64, /data/app/kr.co.myschoollife.testapp-hddsEVrpIhNgleKh8cGOmw==/base.apk!/lib/arm64-v8a, /system/lib64, /system/vendor/lib64]]
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:134)
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379)
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba at boolean com.unity3d.player.UnityPlayer.nativeRender() ((null):-2)
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba at boolean com.unity3d.player.UnityPlayer.access$300(com.unity3d.player.UnityPlayer) ((null):-1)
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba at boolean com.unity3d.player.UnityPlayer$e$1.handleMessage(android.os.Message) ((null):-1)
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba at void android.os.Looper.loop() (Looper.java:214)
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba at void com.unity3d.player.UnityPlayer$e.run() ((null):-1)
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba Rejecting re-init on previously-failed class java.lang.Class<com.unity3d.player.AssetPackManagerWrapper$b>: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/play/core/assetpacks/AssetPackStateUpdateListener;
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba at boolean com.unity3d.player.UnityPlayer.nativeRender() ((null):-2)
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba at boolean com.unity3d.player.UnityPlayer.access$300(com.unity3d.player.UnityPlayer) ((null):-1)
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba at boolean com.unity3d.player.UnityPlayer$e$1.handleMessage(android.os.Message) ((null):-1)
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba at void android.os.Looper.loop() (Looper.java:214)
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba at void com.unity3d.player.UnityPlayer$e.run() ((null):-1)
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba Caused by: java.lang.ClassNotFoundException: Didnā€™t find class ā€œcom.google.android.play.core.assetpacks.AssetPackStateUpdateListenerā€ on path: DexPathList[[zip file ā€œ/data/app/kr.co.myschoollife.testapp-hddsEVrpIhNgleKh8cGOmw==/base.apkā€],nativeLibraryDirectories=[/data/app/kr.co.myschoollife.testapp-hddsEVrpIhNgleKh8cGOmw==/lib/arm64, /data/app/kr.co.myschoollife.testapp-hddsEVrpIhNgleKh8cGOmw==/base.apk!/lib/arm64-v8a, /system/lib64, /system/vendor/lib64]]
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:134)
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379)
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba at boolean com.unity3d.player.UnityPlayer.nativeRender() ((null):-2)
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba at boolean com.unity3d.player.UnityPlayer.access$300(com.unity3d.player.UnityPlayer) ((null):-1)
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba at boolean com.unity3d.player.UnityPlayer$e$1.handleMessage(android.os.Message) ((null):-1)
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba at void android.os.Looper.loop() (Looper.java:214)
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba at void com.unity3d.player.UnityPlayer$e.run() ((null):-1)
2021-10-17 04:14:51.386 1297 1392 Info vy.fleet.comba
2021-10-17 04:14:51.398 1297 1392 Info vy.fleet.comba Rejecting re-init on previously-failed class java.lang.Class<com.unity3d.player.AssetPackManagerWrapper$b>: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/play/core/assetpacks/AssetPackStateUpdateListener;
2021-10-17 04:14:51.398 1297 1392 Info vy.fleet.comba at boolean com.unity3d.player.UnityPlayer.nativeRender() ((null):-2)
2021-10-17 04:14:51.398 1297 1392 Info vy.fleet.comba at boolean com.unity3d.player.UnityPlayer.access$300(com.unity3d.player.UnityPlayer) ((null):-1)
2021-10-17 04:14:51.398 1297 1392 Info vy.fleet.comba at boolean com.unity3d.player.UnityPlayer$e$1.handleMessage(android.os.Message) ((null):-1)
2021-10-17 04:14:51.398 1297 1392 Info vy.fleet.comba at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
2021-10-17 04:14:51.398 1297 1392 Info vy.fleet.comba at void android.os.Looper.loop() (Looper.java:214)
2021-10-17 04:14:51.398 1297 1392 Info vy.fleet.comba at void com.unity3d.player.UnityPlayer$e.run() ((null):-1)
2021-10-17 04:14:51.398 1297 1392 Info vy.fleet.comba Caused by: java.lang.ClassNotFoundException: Didnā€™t find class ā€œcom.google.android.play.core.assetpacks.AssetPackStateUpdateListenerā€ on path: DexPathList[[zip file ā€œ/data/app/kr.co.myschoollife.testapp-hddsEVrpIhNgleKh8cGOmw==/base.apkā€],nativeLibraryDirectories=[/data/app/kr.co.myschoollife.testapp-hddsEVrpIhNgleKh8cGOmw==/lib/arm64, /data/app/kr.co.myschoollife.testapp-hddsEVrpIhNgleKh8cGOmw==/base.apk!/lib/arm64-v8a, /system/lib64, /system/vendor/lib64]]
2021-10-17 04:14:51.398 1297 1392 Info vy.fleet.comba at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:134)
2021-10-17 04:14:51.398 1297 1392 Info vy.fleet.comba at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379)
2021-10-17 04:14:51.398 1297 1392 Info vy.fleet.comba at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
2021-10-17 04:14:51.398 1297 1392 Info vy.fleet.comba at boolean com.unity3d.player.UnityPlayer.nativeRender() ((null):-2)
2021-10-17 04:14:51.398 1297 1392 Info vy.fleet.comba at boolean com.unity3d.player.UnityPlayer.access$300(com.unity3d.player.UnityPlayer) ((null):-1)
2021-10-17 04:14:51.398 1297 1392 Info vy.fleet.comba at boolean com.unity3d.player.UnityPlayer$e$1.handleMessage(android.os.Message) ((null):-1)
2021-10-17 04:14:51.398 1297 1392 Info vy.fleet.comba at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
2021-10-17 04:14:51.398 1297 1392 Info vy.fleet.comba at void android.os.Looper.loop() (Looper.java:214)
2021-10-17 04:14:51.398 1297 1392 Info vy.fleet.comba at void com.unity3d.player.UnityPlayer$e.run() ((null):-1)
2021-10-17 04:14:51.398 1297 1392 Info vy.fleet.comba
2021-10-17 04:14:51.398 1297 1392 Info vy.fleet.comba Rejecting re-init on previously-failed class java.lang.Class<com.unity3d.player.AssetPackManagerWrapper$b>: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/play/core/assetpacks/AssetPackStateUpdateListener;
2021-10-17 04:14:51.398 1297 1392 Info vy.fleet.comba at boolean com.unity3d.player.UnityPlayer.nativeRender() ((null):-2)
2021-10-17 04:14:51.398 1297 1392 Info vy.fleet.comba at boolean com.unity3d.player.UnityPlayer.access$300(com.unity3d.player.UnityPlayer) ((null):-1)
2021-10-17 04:14:51.398 1297 1392 Info vy.fleet.comba at boolean com.unity3d.player.UnityPlayer$e$1.handleMessage(android.os.Message) ((null):-1)
2021-10-17 04:14:51.398 1297 1392 Info vy.fleet.comba at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
2021-10-17 04:14:51.398 1297 1392 Info vy.fleet.comba at void android.os.Looper.loop() (Looper.java:214)
2021-10-17 04:14:51.398 1297 1392 Info vy.fleet.comba at void com.unity3d.player.UnityPlayer$e.run() ((null):-1)
2021-10-17 04:14:51.398 1297 1392 Info vy.fleet.comba Caused by: java.lang.ClassNotFoundException: Didnā€™t find class ā€œcom.google.android.play.core.assetpacks.AssetPackStateUpdateListenerā€ on path: DexPathList[[zip file ā€œ/data/app/kr.co.myschoollife.testapp-hddsEVrpIhNgleKh8cGOmw==/base.apkā€],nativeLibraryDirectories=[/data/app/kr.co.myschoollife.testapp-hddsEVrpIhNgleKh8cGOmw==/lib/arm64, /data/app/kr.co.myschoollife.testapp-hddsEVrpIhNgleKh8cGOmw==/base.apk!/lib/arm64-v8a, /system/lib64, /system/vendor/lib64]]
2021-10-17 04:14:51.398 1297 1392 Info vy.fleet.comba at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:134)
2021-10-17 04:14:51.398 1297 1392 Info vy.fleet.comba at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379)
2021-10-17 04:14:51.398 1297 1392 Info vy.fleet.comba at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
2021-10-17 04:14:51.398 1297 1392 Info vy.fleet.comba at boolean com.unity3d.player.UnityPlayer.nativeRender() ((null):-2)
2021-10-17 04:14:51.398 1297 1392 Info vy.fleet.comba at boolean com.unity3d.player.UnityPlayer.access$300(com.unity3d.player.UnityPlayer) ((null):-1)
2021-10-17 04:14:51.398 1297 1392 Info vy.fleet.comba at boolean com.unity3d.player.UnityPlayer$e$1.handleMessage(android.os.Message) ((null):-1)
2021-10-17 04:14:51.398 1297 1392 Info vy.fleet.comba at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
2021-10-17 04:14:51.398 1297 1392 Info vy.fleet.comba at void android.os.Looper.loop() (Looper.java:214)
2021-10-17 04:14:51.398 1297 1392 Info vy.fleet.comba at void com.unity3d.player.UnityPlayer$e.run() ((null):-1)
2021-10-17 04:14:51.398 1297 1392 Info vy.fleet.comba
2021-10-17 04:14:51.401 1297 1392 Info vy.fleet.comba Rejecting re-init on previously-failed class java.lang.Class<com.unity3d.player.AssetPackManagerWrapper$b>: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/play/core/assetpacks/AssetPackStateUpdateListener;
2021-10-17 04:14:51.401 1297 1392 Info vy.fleet.comba at boolean com.unity3d.player.UnityPlayer.nativeRender() ((null):-2)
2021-10-17 04:14:51.401 1297 1392 Info vy.fleet.comba at boolean com.unity3d.player.UnityPlayer.access$300(com.unity3d.player.UnityPlayer) ((null):-1)
2021-10-17 04:14:51.401 1297 1392 Info vy.fleet.comba at boolean com.unity3d.player.UnityPlayer$e$1.handleMessage(android.os.Message) ((null):-1)
2021-10-17 04:14:51.401 1297 1392 Info vy.fleet.comba at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
2021-10-17 04:14:51.401 1297 1392 Info vy.fleet.comba at void android.os.Looper.loop() (Looper.java:214)
2021-10-17 04:14:51.401 1297 1392 Info vy.fleet.comba at void com.unity3d.player.UnityPlayer$e.run() ((null):-1)
2021-10-17 04:14:51.401 1297 1392 Info vy.fleet.comba Caused by: java.lang.ClassNotFoundException: Didnā€™t find class ā€œcom.google.android.play.core.assetpacks.AssetPackStateUpdateListenerā€ on path: DexPathList[[zip file ā€œ/data/app/kr.co.myschoollife.testapp-hddsEVrpIhNgleKh8cGOmw==/base.apkā€],nativeLibraryDirectories=[/data/app/kr.co.myschoollife.testapp-hddsEVrpIhNgleKh8cGOmw==/lib/arm64, /data/app/kr.co.myschoollife.testapp-hddsEVrpIhNgleKh8cGOmw==/base.apk!/lib/arm64-v8a, /system/lib64, /system/vendor/lib64]]
2021-10-17 04:14:51.401 1297 1392 Info vy.fleet.comba at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:134)
2021-10-17 04:14:51.401 1297 1392 Info vy.fleet.comba at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379)
2021-10-17 04:14:51.401 1297 1392 Info vy.fleet.comba at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
2021-10-17 04:14:51.401 1297 1392 Info vy.fleet.comba at boolean com.unity3d.player.UnityPlayer.nativeRender() ((null):-2)
2021-10-17 04:14:51.401 1297 1392 Info vy.fleet.comba at boolean com.unity3d.player.UnityPlayer.access$300(com.unity3d.player.UnityPlayer) ((null):-1)
2021-10-17 04:14:51.401 1297 1392 Info vy.fleet.comba at boolean com.unity3d.player.UnityPlayer$e$1.handleMessage(android.os.Message) ((null):-1)
2021-10-17 04:14:51.401 1297 1392 Info vy.fleet.comba at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
2021-10-17 04:14:51.401 1297 1392 Info vy.fleet.comba at void android.os.Looper.loop() (Looper.java:214)
2021-10-17 04:14:51.401 1297 1392 Info vy.fleet.comba at void com.unity3d.player.UnityPlayer$e.run() ((null):-1)
2021-10-17 04:14:51.401 1297 1392 Info vy.fleet.comba
2021-10-17 04:14:51.401 1297 1392 Info vy.fleet.comba Rejecting re-init on previously-failed class java.lang.Class<com.unity3d.player.AssetPackManagerWrapper$b>: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/play/core/assetpacks/AssetPackStateUpdateListener;
2021-10-17 04:14:51.401 1297 1392 Info vy.fleet.comba at boolean com.unity3d.player.UnityPlayer.nativeRender() ((null):-2)
2021-10-17 04:14:51.401 1297 1392 Info vy.fleet.comba at boolean com.unity3d.player.UnityPlayer.access$300(com.unity3d.player.UnityPlayer) ((null):-1)
2021-10-17 04:14:51.401 1297 1392 Info vy.fleet.comba at boolean com.unity3d.player.UnityPlayer$e$1.handleMessage(android.os.Message) ((null):-1)
2021-10-17 04:14:51.401 1297 1392 Info vy.fleet.comba at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
2021-10-17 04:14:51.401 1297 1392 Info vy.fleet.comba at void android.os.Looper.loop() (Looper.java:214)
2021-10-17 04:14:51.401 1297 1392 Info vy.fleet.comba at void com.unity3d.player.UnityPlayer$e.run() ((null):-1)
2021-10-17 04:14:51.401 1297 1392 Info vy.fleet.comba Caused by: java.lang.ClassNotFoundException: Didnā€™t find class ā€œcom.google.android.play.core.assetpacks.AssetPackStateUpdateListenerā€ on path: DexPathList[[zip file ā€œ/data/app/kr.co.myschoollife.testapp-hddsEVrpIhNgleKh8cGOmw==/base.apkā€],nativeLibraryDirectories=[/data/app/kr.co.myschoollife.testapp-hddsEVrpIhNgleKh8cGOmw==/lib/arm64, /data/app/kr.co.myschoollife.testapp-hddsEVrpIhNgleKh8cGOmw==/base.apk!/lib/arm64-v8a, /system/lib64, /system/vendor/lib64]]
2021-10-17 04:14:51.401 1297 1392 Info vy.fleet.comba at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:134)
2021-10-17 04:14:51.401 1297 1392 Info vy.fleet.comba at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379)
2021-10-17 04:14:51.401 1297 1392 Info vy.fleet.comba at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
2021-10-17 04:14:51.401 1297 1392 Info vy.fleet.comba at boolean com.unity3d.player.UnityPlayer.nativeRender() ((null):-2)
2021-10-17 04:14:51.401 1297 1392 Info vy.fleet.comba at boolean com.unity3d.player.UnityPlayer.access$300(com.unity3d.player.UnityPlayer) ((null):-1)
2021-10-17 04:14:51.401 1297 1392 Info vy.fleet.comba at boolean com.unity3d.player.UnityPlayer$e$1.handleMessage(android.os.Message) ((null):-1)
2021-10-17 04:14:51.401 1297 1392 Info vy.fleet.comba at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
2021-10-17 04:14:51.401 1297 1392 Info vy.fleet.comba at void android.os.Looper.loop() (Looper.java:214)
2021-10-17 04:14:51.401 1297 1392 Info vy.fleet.comba at void com.unity3d.player.UnityPlayer$e.run() ((null):-1)
2021-10-17 04:14:51.401 1297 1392 Info vy.fleet.comba

I found solution. Use advertisement 3.0.1 Versionā€¦

This Bug was driving me crazy for days in Unity 2021.1.5f1 and Ads 3.7.5, hereā€™s what fixed it for me:

Project Settings ā†’ Services ā†’ Link your project first if you havenā€™t.
Project Settings ā†’ Services ā†’ Ads ā†’ Install latest package 4.0.1 for me here.

Warning: You canā€™t update this package through the regular package manage for some reason.

2 Likes

check app id in google ad sitting, if the app id belonged to an app that does not exist in the AdMob anymore, App will crash at initializing ads.

1 Like

This is damn awesome. Thank you so so much dude :slight_smile:

Iā€™ve the same issue. My old project works, but new crashes.

Hi Hope you all are good
is there any Possibility to run unity ads on mobile without active the services ads Panel in the unity
If anyone knows please share his/her Knowledge Please

Yo man, it didnā€™t worked for me.

same here mamoon im using unity version 2020.3.32f1 in unity its working fine when testing it on a device it wont start it keep crashing it i even tried it in a simple project but same result i made unity ads by watching cococode vedio

Hello Do you mean that if my Admob app id is not currect then it crash with the initializing UnityAds ā€¦?

I am presently facing that crash

Have you linked your project in the editor and updated it to the latest Unity ADs SDK? Please send your error logs to unityads-support@unity3d.com and the support team will do some investigation

Hi!

Im using GoogleMobileAds-v8.7.0 at Unity 2022.3.19f1.
I fill the ID field in Assets ā†’ Google Mobile Ads ā†’ Settings (checked if has space)
Project Settings ā†’ Services ā†’ Unity Project ID is configured too

OH! Just in caseā€¦ Last week it works a couple times, but now it doesnt workā€¦

I donā€™t know what can I do anymoreā€¦

for me it happens only on some devices like Vivo and Oppo