Hi, I’m trying to add Ads into my game but I don’t get it to work on Android build, each time I call Ad.ShowAsync, I got the following error in the logcat console:
com.unity3d.services.core.webview.bridge.Invocation.nextInvocation() (line:8) :: Error handling invocation com.unity3d.services.ads.api.VideoPlayer.prepare([file:///storage/emulated/0/Android/data/*******/cache/UnityAdsCache/UnityAdsCache-5b53f297d5f7d100f6633eb45db88d58fe38e56f425c12676b6fc705400a6ad3.mp4, 1.00000000000000000000, 10000]): Attempt to invoke virtual method 'java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])' on a null object reference
Tested on test ads too:
com.unity3d.services.core.webview.bridge.Invocation.nextInvocation() (line:8) :: Error handling invocation com.unity3d.services.ads.api.VideoPlayer.prepare([https://cdn-creatives-akamaistls-prd.acquire.unity3dusercontent.com/impact/11017/blue_test_trailer.mp4, 1.00000000000000000000, 10000]): Attempt to invoke virtual method 'java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])' on a null object reference
On the device I’m stuck on a black screen and no callback are called.
If I click on the black screen I’m redirected on the store.
I’m testing interstitials videos ads (in case it’s related)
No problem in editor.
Will try on iOS later.
Any help appreciated
[EDIT]
Tested on iOS an all is working.
Tested with rewarded on Android and the problem stays the same.