Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Bloody-Lemon · Jan 02, 2018 at 01:05 PM · androidcrashadmobsplashscreen

android app crashes after unity screen (maybe because of AdMob?)

Hi everyone,

I'm testing my game on my One Plus 5T, and it crashes after unity splash screen. I tested my game on a Galaxy Note 3, and it crashes the same way. I can't find a working solution.
I have used logcat to spot the problem. Here is what I get:

01-01 22:37:37.419 18053-18072/? I/art: at void com.admob.plugin.AdmobUnityPlugin.() ((null):-1) 01-01 22:37:37.419 18053-18072/? I/art: at com.admob.plugin.AdmobUnityPlugin com.admob.plugin.AdmobUnityPlugin.getInstance() ((null):-1) 01-01 22:37:37.419 18053-18072/? I/art: at boolean com.unity3d.player.UnityPlayer.nativeRender() ((null):-2) 01-01 22:37:37.419 18053-18072/? I/art: at boolean com.unity3d.player.UnityPlayer.c(com.unity3d.player.UnityPlayer) ((null):-1) 01-01 22:37:37.419 18053-18072/? I/art: at boolean com.unity3d.player.UnityPlayer$c$1.handleMessage(android.os.Message) ((null):-1) 01-01 22:37:37.419 18053-18072/? I/art: at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:98) 01-01 22:37:37.419 18053-18072/? I/art: at void android.os.Looper.loop() (Looper.java:154) 01-01 22:37:37.419 18053-18072/? I/art: at void com.unity3d.player.UnityPlayer$c.run() ((null):-1) 01-01 22:37:37.445 18053-18053/? D/AndroidRuntime: Shutting down VM 01-01 22:37:37.446 18053-18053/? E/AndroidRuntime: FATAL EXCEPTION: main Process: com.PaulEmileGiacomelli.PortalCube, PID: 18053 java.lang.Error: FATAL EXCEPTION [main] Unity version : 2017.3.0f3 Device model : OnePlus ONEPLUS A5010 Device fingerprint: OnePlus/OnePlus5T/OnePlus5T:7.1.1/NMF26X/11280212:user/release-keys

                                                Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/ads/AdSize;
                                                    at com.admob.plugin.n.a(Unknown Source)
                                                    at com.admob.plugin.g.run(Unknown Source)
                                                    at android.os.Handler.handleCallback(Handler.java:751)
                                                    at android.os.Handler.dispatchMessage(Handler.java:95)
                                                    at android.os.Looper.loop(Looper.java:154)
                                                    at android.app.ActivityThread.main(ActivityThread.java:6422)
                                                    at java.lang.reflect.Method.invoke(Native Method)
                                                    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
                                                    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
                                                 Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.ads.AdSize" on path: DexPathList[[zip file "/data/app/com.PaulEmileGiacomelli.PortalCube-1/base.apk"],nativeLibraryDirectories=[/data/app/com.PaulEmileGiacomelli.PortalCube-1/lib/arm, /data/app/com.PaulEmileGiacomelli.PortalCube-1/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]
                                                    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
                                                    at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
                                                    at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
                                                    at com.admob.plugin.n.a(Unknown Source) 
                                                    at com.admob.plugin.g.run(Unknown Source) 
                                                    at android.os.Handler.handleCallback(Handler.java:751) 
                                                    at android.os.Handler.dispatchMessage(Handler.java:95) 
                                                    at android.os.Looper.loop(Looper.java:154) 
                                                    at android.app.ActivityThread.main(ActivityThread.java:6422) 
                                                    at java.lang.reflect.Method.invoke(Native Method) 
                                                    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886) 
                                                    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776) 

01-01 22:37:37.446 18053-18053/? D/AppTracker: App Event: crash 01-01 22:37:37.450 1391-3049/? W/ActivityManager: Force finishing activity com.PaulEmileGiacomelli.PortalCube/com.unity3d.player.UnityPlayerActivity 01-01 22:37:37.454 1391-3049/? D/OemPhoneWindowManager: [isDefaultHome] default home: ActivityInfo{99b5e5f net.oneplus.launcher.Launcher} 01-01 22:37:37.457 18053-18053/? I/Process: Sending signal. PID: 18053 SIG: 9 01-01 22:37:37.457 3075-3373/? D/OPReportService: addMonitorFolder onEvent path=data_app_crash@2018-01-01-22_37_37_456.txt, event:128 01-01 22:37:37.482 1391-2035/? W/InputDispatcher: channel '4d6b14d com.PaulEmileGiacomelli.PortalCube/com.unity3d.player.UnityPlayerActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9 01-01 22:37:37.482 1391-2035/? E/InputDispatcher: channel '4d6b14d com.PaulEmileGiacomelli.PortalCube/com.unity3d.player.UnityPlayerActivity (server)' ~ Channel is unrecoverably broken and will be disposed!

I guess it has to deal with AdMob, but what is the problem? How can I fix this?

Thank you for your answer.

By the way: AMAZING FORUM! I've solved more than 100 problems thanks to your answers. THANK YOU!,

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

157 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

App crashes on google play login 1 Answer

Android thread causes crash? 1 Answer

Unity AdMob Crashes After VideoAd Load (Android) 0 Answers

App crash on launch. 1 Answer

Game crashes when taking screenshot after admob ad has loaded on Android 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges