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

HelloWorld Sample- Native Overlay crash #3345

Open
idevxgame2024 opened this issue May 1, 2024 · 7 comments
Open

HelloWorld Sample- Native Overlay crash #3345

idevxgame2024 opened this issue May 1, 2024 · 7 comments
Assignees
Labels
Plugin Issue with the Unity plugin.

Comments

@idevxgame2024
Copy link

[REQUIRED] Step 1: Describe your environment

  • Unity version: 2023.2.17f1
  • Google Mobile Ads Unity plugin version: 9.1
  • Platform: Android (iOS, Android, Unity Editor)
  • Platform OS version: _____ (eg iOS 10, Android 9)
  • Any specific devices issue occurs on: _____
  • Mediation ad networks used, and their versions: _____

[REQUIRED] Step 2: Describe the problem

When run Sample , after Native Overlay Ad load success , if press "Render" it will show ad on top screen, if press "show ad" , the app crash.

@idevxgame2024 idevxgame2024 changed the title Sample - Native Overlay crash HelloWorld Sample- Native Overlay crash May 1, 2024
@NVentimiglia
Copy link
Member

Thank you for reporting this,

  • What platform are you testing on (iOS / Android).
  • Do you have any crash logs you can share?

@NVentimiglia NVentimiglia self-assigned this May 10, 2024
@NVentimiglia NVentimiglia added the Plugin Issue with the Unity plugin. label May 10, 2024
@idevxgame2024
Copy link
Author

idevxgame2024 commented May 14, 2024 via email

@NVentimiglia
Copy link
Member

If you have issues please reopen this issue and let me know.

@naved1197
Copy link

2024-10-31 16:26:32.478 31725 31725 Error AndroidRuntime Process: com.Cubehole.HelloWorld, PID: 31725
2024-10-31 16:26:32.478 31725 31725 Error AndroidRuntime java.lang.NoSuchFieldError: No static field icon of type I in class Lcom/google/unity/ads/R$id; or its superclasses (declaration of 'com.google.unity.ads.R$id' appears in /data/app/~~ap5ongd4hu85-QNbMduiWg==/com.Cubehole.HelloWorld-Fa_QDIXE3LRgziJaTK3KFg==/base.apk!classes2.dex)
2024-10-31 16:26:32.478 31725 31725 Error AndroidRuntime 	at com.google.android.ads.nativetemplates.TemplateView.onFinishInflate(TemplateView.java:290)
2024-10-31 16:26:32.478 31725 31725 Error AndroidRuntime 	at android.view.LayoutInflater.rInflate(LayoutInflater.java:1159)
2024-10-31 16:26:32.478 31725 31725 Error AndroidRuntime 	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1107)
2024-10-31 16:26:32.478 31725 31725 Error AndroidRuntime 	at android.view.LayoutInflater.inflate(LayoutInflater.java:703)
2024-10-31 16:26:32.478 31725 31725 Error AndroidRuntime 	at android.view.LayoutInflater.inflate(LayoutInflater.java:544)
2024-10-31 16:26:32.478 31725 31725 Error AndroidRuntime 	at android.view.LayoutInflater.inflate(LayoutInflater.java:491)
2024-10-31 16:26:32.478 31725 31725 Error AndroidRuntime 	at com.google.unity.ads.nativead.UnityNativeTemplateStyle.asTemplateView(UnityNativeTemplateStyle.java:58)
2024-10-31 16:26:32.478 31725 31725 Error AndroidRuntime 	at com.google.unity.ads.nativead.UnityNativeTemplateAd$5.run(UnityNativeTemplateAd.java:264)
2024-10-31 16:26:32.478 31725 31725 Error AndroidRuntime 	at android.os.Handler.handleCallback(Handler.java:958)
2024-10-31 16:26:32.478 31725 31725 Error AndroidRuntime 	at android.os.Handler.dispatchMessage(Handler.java:99)
2024-10-31 16:26:32.478 31725 31725 Error AndroidRuntime 	at android.os.Looper.loopOnce(Looper.java:257)
2024-10-31 16:26:32.478 31725 31725 Error AndroidRuntime 	at android.os.Looper.loop(Looper.java:368)
2024-10-31 16:26:32.478 31725 31725 Error AndroidRuntime 	at android.app.ActivityThread.main(ActivityThread.java:8839)
2024-10-31 16:26:32.478 31725 31725 Error AndroidRuntime 	at java.lang.reflect.Method.invoke(Native Method)
2024-10-31 16:26:32.478 31725 31725 Error AndroidRuntime 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:572)
2024-10-31 16:26:32.478 31725 31725 Error AndroidRuntime 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049)

I have the same issue ad loads fine but when I press the Load or Render Ad button in the sample app the app crashes

@nmtoan91
Copy link

I have a same problem, please help @NVentimiglia

@nmtoan91
Copy link

image

@NVentimiglia
Copy link
Member

NVentimiglia commented Dec 12, 2024

@nmtoan91

  • Which platforms are you testing on
  • What SDK and Unity plugin version are you using.
  • What device or emulator are you using
  • Is this on a test ad unit or your own ?

@NVentimiglia NVentimiglia reopened this Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Plugin Issue with the Unity plugin.
Projects
None yet
Development

No branches or pull requests

4 participants