Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 piyushr · Oct 22, 2014 at 04:21 PM · androidadmobin app purchasemopub

App crashes on tapping on Admob ads and IAB

We are trying to impliment admob ads though mopub mediation. when we click on the admob banner ad app crash. Same thing happens when I click on purchases button(we are prime31 IAB plugin). It happens only in android 4.4 and above. Following is the crash log:-

 10-22 20:02:14.836: E/AndroidRuntime(6795): FATAL EXCEPTION: main
 10-22 20:02:14.836: E/AndroidRuntime(6795): Process: com.comp.apps, PID: 6795
 10-22 20:02:14.836: E/AndroidRuntime(6795): java.lang.Error: FATAL EXCEPTION [main]
 10-22 20:02:14.836: E/AndroidRuntime(6795): Unity version     : 4.5.4f1
 10-22 20:02:14.836: E/AndroidRuntime(6795): Device model      : LGE Nexus 4
 10-22 20:02:14.836: E/AndroidRuntime(6795): Device fingerprint: google/occam/mako:4.4.4/KTU84P/1227136:user/release-keys
 10-22 20:02:14.836: E/AndroidRuntime(6795): Caused by: java.lang.NullPointerException
 10-22 20:02:14.836: E/AndroidRuntime(6795):     at com.android.internal.app.ActionBarImpl.doHide(ActionBarImpl.java:746)
 10-22 20:02:14.836: E/AndroidRuntime(6795):     at com.android.internal.app.ActionBarImpl.updateVisibility(ActionBarImpl.java:674)
 10-22 20:02:14.836: E/AndroidRuntime(6795):     at com.android.internal.app.ActionBarImpl.hideForSystem(ActionBarImpl.java:646)
 10-22 20:02:14.836: E/AndroidRuntime(6795):     at com.android.internal.widget.ActionBarOverlayLayout.onWindowSystemUiVisibilityChanged(ActionBarOverlayLayout.java:151)
 10-22 20:02:14.836: E/AndroidRuntime(6795):     at com.android.internal.widget.ActionBarOverlayLayout.setActionBar(ActionBarOverlayLayout.java:98)
 10-22 20:02:14.836: E/AndroidRuntime(6795):     at com.android.internal.app.ActionBarImpl.init(ActionBarImpl.java:182)
 10-22 20:02:14.836: E/AndroidRuntime(6795):     at com.android.internal.app.ActionBarImpl.<init>(ActionBarImpl.java:166)
 10-22 20:02:14.836: E/AndroidRuntime(6795):     at android.app.Activity.initActionBar(Activity.java:1912)
 10-22 20:02:14.836: E/AndroidRuntime(6795):     at android.app.Activity.getMenuInflater(Activity.java:3347)
 10-22 20:02:14.836: E/AndroidRuntime(6795):     at android.app.Activity.onCreatePanelMenu(Activity.java:2539)
 10-22 20:02:14.836: E/AndroidRuntime(6795):     at com.android.internal.policy.impl.PhoneWindow.preparePanel(PhoneWindow.java:436)
 10-22 20:02:14.836: E/AndroidRuntime(6795):     at com.android.internal.policy.impl.PhoneWindow.doInvalidatePanelMenu(PhoneWindow.java:800)
 10-22 20:02:14.836: E/AndroidRuntime(6795):     at com.android.internal.policy.impl.PhoneWindow$1.run(PhoneWindow.java:221)
 10-22 20:02:14.836: E/AndroidRuntime(6795):     at android.view.Choreographer$CallbackRecord.run(Choreographer.java:761)
 10-22 20:02:14.836: E/AndroidRuntime(6795):     at android.view.Choreographer.doCallbacks(Choreographer.java:574)
 10-22 20:02:14.836: E/AndroidRuntime(6795):     at android.view.Choreographer.doFrame(Choreographer.java:543)
 10-22 20:02:14.836: E/AndroidRuntime(6795):     at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747)
 10-22 20:02:14.836: E/AndroidRuntime(6795):     at android.os.Handler.handleCallback(Handler.java:733)
 10-22 20:02:14.836: E/AndroidRuntime(6795):     at android.os.Handler.dispatchMessage(Handler.java:95)
 10-22 20:02:14.836: E/AndroidRuntime(6795):     at android.os.Looper.loop(Looper.java:136)
 10-22 20:02:14.836: E/AndroidRuntime(6795):     at android.app.ActivityThread.main(ActivityThread.java:5001)
 10-22 20:02:14.836: E/AndroidRuntime(6795):     at java.lang.reflect.Method.invokeNative(Native Method)
 10-22 20:02:14.836: E/AndroidRuntime(6795):     at java.lang.reflect.Method.invoke(Method.java:515)
 10-22 20:02:14.836: E/AndroidRuntime(6795):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
 10-22 20:02:14.836: E/AndroidRuntime(6795):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
 10-22 20:02:14.836: E/AndroidRuntime(6795):     at dalvik.system.NativeStart.main(Native Method)

We are using Unity 4.5.4, Mopub 3.2.0 and latest google play services

Comment
Add comment · Show 3
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
avatar image Malik Basit · Nov 28, 2014 at 03:21 PM 1
Share

@piyushr have you found the reason ? how to fix this issue. i am facing the same problem.

avatar image gershonavi · Jun 05, 2015 at 01:10 PM 0
Share

@piyushr I also have this problem, have you solved it? plz any help would be greatfull

avatar image Malik Basit · Jun 06, 2015 at 09:01 AM 0
Share

@gershonavi i was using an outdated android immersive mode plugin from assets store. In my case crash was not occurring because of admob ad click, but because of that plugin. It was trying to enable immersive mode when we come back into game after tapping the ad.

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by koray1396 · Nov 28, 2014 at 03:48 PM

you should look at complete log, not just AndroidRuntime. I assume something may be wrong with your manifest file.

Comment
Add comment · Share
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
avatar image
0

Answer by a.dolbilov · Sep 23, 2015 at 09:13 AM

I've solved this problem by adding into section of AndroidManifest.xml.

Comment
Add comment · Show 1 · Share
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
avatar image a.dolbilov · Sep 23, 2015 at 09:00 AM 0
Share

sorry, browser eats actual answer (android:theme="@android:style/Theme.NoTitleBar") into application section of Android$$anonymous$$anifest.xml

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

6 People are following this question.

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

Related Questions

In App Purchases & Ads not working in app after publishing to Google Play using Android App Bundle 2 Answers

Error converting bytecode to dex: Cause: com.android.dex.DexException: Multiple dex files define 0 Answers

How can I upgrade my Android Jar Dependencies? 1 Answer

How to enable ads in your games. 1 Answer

Admob makes my scene load slower 1 Answer


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