Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I encountered this NULL exception while initializing MobileAds #3711

Open
CatOfDag opened this issue Dec 16, 2024 · 1 comment
Open

I encountered this NULL exception while initializing MobileAds #3711

CatOfDag opened this issue Dec 16, 2024 · 1 comment

Comments

@CatOfDag
Copy link

NullReferenceException: Object reference not set to an instance of an object. at UnityEngine.AndroidJNIHelper.CreateJavaProxy (UnityEngine.AndroidJavaProxy proxy) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.AndroidJavaProxy.GetRawProxy () [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine._AndroidJNIHelper.CreateJNIArgArray (System.Object[] args) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.AndroidJavaObject._CallStatic (System.String methodName, System.Object[] args) [0x00000] in <00000000000000000000000000000000>:0 at GoogleMobileAds.Api.MobileAds.Initialize (System.Action1[T] initCompleteAction) [0x00000] in <00000000000000000000000000000000>:0 `

How to handle it? Thank you for providing assistance

@NVentimiglia
Copy link
Member

This may be caused by missing platfrom code. Make sure the Android jar dependencies are included.

https://developers.google.com/admob/unity/android

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants