InAppPurchaseActivity NullPointerException

629 views
Skip to first unread message

Yoann Hercouët

unread,
Aug 24, 2016, 7:11:36 AM8/24/16
to Google Mobile Ads SDK Developers
I am getting those crashes recently:

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.aiguo.handydiary/com.google.android.gms.ads.purchase.InAppPurchaseActivity}: java.lang.NullPointerException : at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2209)

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.aiguo.handydiary/com.google.android.gms.ads.purchase.InAppPurchaseActivity}: java.lang.NullPointerException: Attempt to read from field 'com.google.android.gms.ads.internal.purchase.zzj com.google.android.gms.ads.internal.purchase.GInAppPurchaseManagerInfoParcel.zzbwo' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2307)

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.aiguo.handydiary/com.google.android.gms.ads.purchase.InAppPurchaseActivity}: java.lang.NullPointerException
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2074)



I have no idea where it is coming from, InAppPurchaseActivity is supposed to be related to the Admob interstials, but I am not using any interstitials in my apps, I have implemented native ads only.

Do I have to follow these guidelines even though I don't use interstitials? : https://firebase.google.com/docs/admob/android/iap

My manifests also do not include the following activity declaration, do I have to include it anyway?:

<activity
    android:name="com.google.android.gms.ads.purchase.InAppPurchaseActivity"
    android:theme="@style/Theme.IAPTheme"/>


I am using the version 9.4.0

Thank you

Vu Chau (Mobile Ads SDK Team)

unread,
Aug 24, 2016, 11:17:56 AM8/24/16
to Google Mobile Ads SDK Developers
Hi Yoann,

If you saw that crash without using IAP interstitials, would you be able to send some code snippets from where the crash originates?

Thanks,

Vu Chau
Mobile Ads SDK Team

Yoann Hercouët

unread,
Aug 24, 2016, 1:03:25 PM8/24/16
to Google Mobile Ads SDK Developers
Hello,

I never reproduced this crash myself, I got those reports from ACRA, the origin does not point in my code.

Here are the detailed logs, it happened on Android versions from 4.x to 6.x, I don't have much more for now:

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.aiguo.handydiary/com.google.android.gms.ads.purchase.InAppPurchaseActivity}: java.lang.NullPointerException
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2209)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2259)
at android.app.ActivityThread.access$800(ActivityThread.java:149)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1210)
at android.os.Handler.dispatchMessage(Handler.java:127)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5122)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at com.google.android.gms.ads.internal.purchase.zze.onCreate(Unknown Source)
at com.google.android.gms.ads.purchase.InAppPurchaseActivity.onCreate(Unknown Source)
at android.app.Activity.performCreate(Activity.java:5437)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1092)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2173)
... 11 more
java.lang.NullPointerException
at com.google.android.gms.ads.internal.purchase.zze.onCreate(Unknown Source)
at com.google.android.gms.ads.purchase.InAppPurchaseActivity.onCreate(Unknown Source)
at android.app.Activity.performCreate(Activity.java:5437)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1092)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2173)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2259)
at android.app.ActivityThread.access$800(ActivityThread.java:149)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1210)
at android.os.Handler.dispatchMessage(Handler.java:127)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5122)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.aiguo.handydiary/com.google.android.gms.ads.purchase.InAppPurchaseActivity}: java.lang.NullPointerException
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2074)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2099)
at android.app.ActivityThread.access$600(ActivityThread.java:145)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1210)
at android.os.Handler.dispatchMessage(Handler.java:125)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4873)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:528)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at com.google.android.gms.ads.internal.purchase.zze.onCreate(Unknown Source)
at com.google.android.gms.ads.purchase.InAppPurchaseActivity.onCreate(Unknown Source)
at android.app.Activity.performCreate(Activity.java:5218)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2038)
... 11 more
java.lang.NullPointerException
at com.google.android.gms.ads.internal.purchase.zze.onCreate(Unknown Source)
at com.google.android.gms.ads.purchase.InAppPurchaseActivity.onCreate(Unknown Source)
at android.app.Activity.performCreate(Activity.java:5218)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2038)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2099)
at android.app.ActivityThread.access$600(ActivityThread.java:145)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1210)
at android.os.Handler.dispatchMessage(Handler.java:125)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4873)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:528)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method)

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.aiguo.handydiary/com.google.android.gms.ads.purchase.InAppPurchaseActivity}: java.lang.NullPointerException: Attempt to read from field 'com.google.android.gms.ads.internal.purchase.zzj com.google.android.gms.ads.internal.purchase.GInAppPurchaseManagerInfoParcel.zzbwo' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2307)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2369)
at android.app.ActivityThread.access$800(ActivityThread.java:153)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1287)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5273)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
Caused by: java.lang.NullPointerException: Attempt to read from field 'com.google.android.gms.ads.internal.purchase.zzj com.google.android.gms.ads.internal.purchase.GInAppPurchaseManagerInfoParcel.zzbwo' on a null object reference
at com.google.android.gms.ads.internal.purchase.zze.onCreate(Unknown Source)
at com.google.android.gms.ads.purchase.InAppPurchaseActivity.onCreate(Unknown Source)
at android.app.Activity.performCreate(Activity.java:6119)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2260)
... 10 more
java.lang.NullPointerException: Attempt to read from field 'com.google.android.gms.ads.internal.purchase.zzj com.google.android.gms.ads.internal.purchase.GInAppPurchaseManagerInfoParcel.zzbwo' on a null object reference
at com.google.android.gms.ads.internal.purchase.zze.onCreate(Unknown Source)
at com.google.android.gms.ads.purchase.InAppPurchaseActivity.onCreate(Unknown Source)
at android.app.Activity.performCreate(Activity.java:6119)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2260)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2369)
at android.app.ActivityThread.access$800(ActivityThread.java:153)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1287)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5273)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)


Yoann Hercouët

unread,
Aug 24, 2016, 1:05:30 PM8/24/16
to Google Mobile Ads SDK Developers
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.aiguo.handydiary/com.google.android.gms.ads.purchase.InAppPurchaseActivity}: java.lang.NullPointerException
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2209)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2259)
at android.app.ActivityThread.access$800(ActivityThread.java:149)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1210)
at android.os.Handler.dispatchMessage(Handler.java:127)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5122)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at com.google.android.gms.ads.internal.purchase.zze.onCreate(Unknown Source)
at com.google.android.gms.ads.purchase.InAppPurchaseActivity.onCreate(Unknown Source)
at android.app.Activity.performCreate(Activity.java:5437)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1092)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2173)
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.aiguo.handydiary/com.google.android.gms.ads.purchase.InAppPurchaseActivity}: java.lang.NullPointerException
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2074)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2099)
at android.app.ActivityThread.access$600(ActivityThread.java:145)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1210)
at android.os.Handler.dispatchMessage(Handler.java:125)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4873)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:528)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at com.google.android.gms.ads.internal.purchase.zze.onCreate(Unknown Source)
at com.google.android.gms.ads.purchase.InAppPurchaseActivity.onCreate(Unknown Source)
at android.app.Activity.performCreate(Activity.java:5218)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2038)
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.aiguo.handydiary/com.google.android.gms.ads.purchase.InAppPurchaseActivity}: java.lang.NullPointerException: Attempt to read from field 'com.google.android.gms.ads.internal.purchase.zzj com.google.android.gms.ads.internal.purchase.GInAppPurchaseManagerInfoParcel.zzbwo' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2307)

Vu Chau (Mobile Ads SDK Team)

unread,
Aug 24, 2016, 3:56:19 PM8/24/16
to Google Mobile Ads SDK Developers
Hi Yoann,

Thanks for the stack traces.  I'll relay them to the rest of the team and let you know if we can share some findings.  For the time being,  let me know if you will be able to reproduce the crashes locally, and if so, the relevant details (steps, code, et al.) so we can dig further into it.

Vu Chau
Mobile Ads SDK Team

Giuseppe Romano

unread,
Aug 25, 2016, 1:39:45 AM8/25/16
to Google Mobile Ads SDK Developers
Same problem:

Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.aiuspaktyn.clienti/com.google.android.gms.ads.purchase.InAppPurchaseActivity}: java.lang.NullPointerException
       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2211)
       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
       at android.app.ActivityThread.access$600(ActivityThread.java:141)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       at android.os.Looper.loop(Looper.java:137)
       at android.app.ActivityThread.main(ActivityThread.java:5103)
       at java.lang.reflect.Method.invokeNative(Method.java)
       at java.lang.reflect.Method.invoke(Method.java:525)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
       at dalvik.system.NativeStart.main(NativeStart.java)

Caused by java.lang.NullPointerException
       at com.google.android.gms.ads.internal.purchase.zze.onCreate(Unknown Source)
       at com.google.android.gms.ads.purchase.InAppPurchaseActivity.onCreate(Unknown Source)
       at android.app.Activity.performCreate(Activity.java:5133)
       at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175)
       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
       at android.app.ActivityThread.access$600(ActivityThread.java:141)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       at android.os.Looper.loop(Looper.java:137)
       at android.app.ActivityThread.main(ActivityThread.java:5103)
       at java.lang.reflect.Method.invokeNative(Method.java)
       at java.lang.reflect.Method.invoke(Method.java:525)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
       at dalvik.system.NativeStart.main(NativeStart.java)

Yoann Hercouët

unread,
Aug 25, 2016, 5:20:35 AM8/25/16
to Google Mobile Ads SDK Developers
For now it only happened on my latest app version, where I updated the SDK from version 9.2.1 to 9.4.0. I did not change anything on the native ads themselves.

Ram Parameswaran (Mobile SDK Team)

unread,
Aug 25, 2016, 4:20:52 PM8/25/16
to Google Mobile Ads SDK Developers
For apps where you are seeing this crash, have you integrated native advanced or native express ads?

- Ram

Yoann Hercouët

unread,
Aug 26, 2016, 4:45:54 AM8/26/16
to Google Mobile Ads SDK Developers
Native Express Ads

Ram Parameswaran (Mobile SDK Team)

unread,
Aug 26, 2016, 1:27:55 PM8/26/16
to Google Mobile Ads SDK Developers
The Android SDK team is currently investigating this issue and I'll follow up as soon as I have more information.

- Ram

Kyle D

unread,
Aug 30, 2016, 10:03:50 AM8/30/16
to Google Mobile Ads SDK Developers
In case it helps, I am getting the exact same error on multiple apps, after updating them to the latest play-services version 9.0.2. (We have also updated other google/android libraries to the latest but I assume the issue is in play-services.)

However, none of my apps have ads implemented at all. Native, or otherwise.

I am able to provide stack traces and device information if needed. So far, I have seen this crash reported on the following devices:
Galaxy Nexus
Nexus 6

Thanks.

Ram Parameswaran (Mobile SDK Team)

unread,
Aug 31, 2016, 1:48:32 PM8/31/16
to Google Mobile Ads SDK Developers
Hi Kyle,

Are you able to reproduce the crash locally? If so, can you provide steps to reproduce the issue. Also, the current play services version is 9.4.0. Are you also seeing the crash on that version of play services?

- Ram

Ricardo Amaral

unread,
Sep 6, 2016, 8:21:44 AM9/6/16
to Google Mobile Ads SDK Developers
I'm also getting this crash...

I don't use ads and I don't use IAP on my app. So far it only affected 1 user. I can't seem to reproduce this locally.

Here's my stack trace:

Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.betfair.sportsbook/com.google.android.gms.ads.purchase.InAppPurchaseActivity}: java.lang.NullPointerException

And this is what I have on my build.gradle file:

compile "com.google.android.gms:play-services-ads:9.4.0"
compile
"com.google.android.gms:play-services-analytics:9.4.0"
compile
"com.google.android.gms:play-services-gcm:9.4.0"
compile
"com.google.android.gms:play-services-location:9.4.0"

Hope it helps track down the issue.

Ram Parameswaran (Mobile SDK Team)

unread,
Sep 6, 2016, 1:44:27 PM9/6/16
to Google Mobile Ads SDK Developers
Hi Ricardo,

Thanks for providing that information. Additional data is always helpful. The Google Mobile Ads Android SDK team is still investigating this issue and I'll follow up as soon as I have more information

- Ram

PokeAlert Pokemon GO Notification

unread,
Sep 22, 2016, 12:28:01 PM9/22/16
to Google Mobile Ads SDK Developers
Same here.. this started happening as soon as I started using InterstitialAd 

It happens on 9.4.0 but I then I reverted back to 9.2.1 but I still get the same error from my ACRA logs

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.alert.poke/com.google.android.gms.ads.purchase.InAppPurchaseActivity}: java.lang.NullPointerException: Attempt to read from field 'com.google.android.gms.ads.internal.purchase.m com.google.android.gms.ads.internal.purchase.GInAppPurchaseManagerInfoParcel.e' on a null object reference

at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2419)

at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2479)

at android.app.ActivityThread.-wrap11(ActivityThread.java)

at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1347)

at android.os.Handler.dispatchMessage(Handler.java:102)

at android.os.Looper.loop(Looper.java:148)

at android.app.ActivityThread.main(ActivityThread.java:5420)

at java.lang.reflect.Method.invoke(Native Method)

at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

Caused by: java.lang.NullPointerException: Attempt to read from field 'com.google.android.gms.ads.internal.purchase.m com.google.android.gms.ads.internal.purchase.GInAppPurchaseManagerInfoParcel.e' on a null object reference

at com.google.android.gms.ads.internal.purchase.f.a(:com.google.android.gms.DynamiteModulesA:78)

at com.google.android.gms.ads.internal.purchase.client.h.onTransact(:com.google.android.gms.DynamiteModulesA:51)

at android.os.Binder.transact(Binder.java:387)

at com.google.android.gms.internal.lo$a$a.a(Unknown Source)

at com.google.android.gms.ads.purchase.InAppPurchaseActivity.onCreate(Unknown Source)

at android.app.Activity.performCreate(Activity.java:6251)

at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)

at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2372)

... 9 more

java.lang.NullPointerException: Attempt to read from field 'com.google.android.gms.ads.internal.purchase.m com.google.android.gms.ads.internal.purchase.GInAppPurchaseManagerInfoParcel.e' on a null object reference

at com.google.android.gms.ads.internal.purchase.f.a(:com.google.android.gms.DynamiteModulesA:78)

at com.google.android.gms.ads.internal.purchase.client.h.onTransact(:com.google.android.gms.DynamiteModulesA:51)

at android.os.Binder.transact(Binder.java:387)

at com.google.android.gms.internal.lo$a$a.a(Unknown Source)

at com.google.android.gms.ads.purchase.InAppPurchaseActivity.onCreate(Unknown Source)

at android.app.Activity.performCreate(Activity.java:6251)

at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)

at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2372)

at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2479)

at android.app.ActivityThread.-wrap11(ActivityThread.java)

at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1347)

at android.os.Handler.dispatchMessage(Handler.java:102)

at android.os.Looper.loop(Looper.java:148)

at android.app.ActivityThread.main(ActivityThread.java:5420)

at java.lang.reflect.Method.invoke(Native Method)

at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)





Kishor Gandham

unread,
Sep 26, 2016, 12:23:22 PM9/26/16
to Google Mobile Ads SDK Developers
Same issue with 9.6.1 play services ad SDK.
Can reproduce, but I am getting crash notifications via Crashlytics.

Daniele De Sanctis

unread,
Sep 27, 2016, 3:49:41 PM9/27/16
to Google Mobile Ads SDK Developers
I've got the same issue with:

compile "com.google.android.gms:play-services-ads:9.6.0"
compile 
"com.google.android.gms:play-services-analytics:9.6.0"

Operating system: Android 4.3.1

Device: XT320

StackTrace:

Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.codefrag.smartdroid/com.google.android.gms.ads.purchase.InAppPurchaseActivity}: java.lang.NullPointerException


I don't have IN APP purchase in my app. I just use the ads lib to display a SMART BANNER on the main page.

Hope this can help.

//Daniele.

Raj Agrawal

unread,
Nov 29, 2016, 8:01:27 AM11/29/16
to Google Mobile Ads SDK Developers
I've recently had the issue on same OS version, same device with same error. The only difference is that i'm using the firebase libraries with version 10.0.0. I hoped the version update would help, but the issues is persistent.

And i'm unable to find what event triggers this problem. 

This is not good. Either all of us are doing something wrong or the devs of the SDKs have messed up somewhere. I hope they're looking into this. 

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Nov 29, 2016, 10:09:40 AM11/29/16
to Google Mobile Ads SDK Developers
Hi Raj,

Can you send us your apk and maybe a minified version of your app or some code snippets? The latest update with regards to this issue is that we are unable to reproduce this issue locally and we are looking to understand any specific implementation that might be causing this.

Thanks,
Arjun Busani
Mobile Ads SDK Team

Raj Agrawal

unread,
Nov 30, 2016, 11:42:23 AM11/30/16
to Google Mobile Ads SDK Developers
Hi Veer,

In my app, toggleAds(...) is invoked whenever an event to turn on/ off the ads is received on run-time.

Here's how i'm first initializing ads (invoking initialiseAds() on onCreate()):

private void initialiseAds() {
AdRequest adRequest;
if (BuildConfig.DEBUG || BuildConfig.FLAVOR.equals(PRODUCT_FLAVOR_DEMO)) {
adRequest = new AdRequest.Builder()
.addTestDevice(AdRequest.DEVICE_ID_EMULATOR)
.addTestDevice(getString(R.string.myTestDeviceID))
.build();
}
else{
adRequest = new AdRequest.Builder()
.build();
}

mAdView.setAdListener(new AdListener() {
@Override
public void onAdClosed() {
super.onAdClosed();
}

@Override
public void onAdFailedToLoad(int i) {
super.onAdFailedToLoad(i);
}

@Override
public void onAdLeftApplication() {
super.onAdLeftApplication();
}

@Override
public void onAdOpened() {
super.onAdOpened();
}

@Override
public void onAdLoaded() {
super.onAdLoaded();
ll_ads.setVisibility(View.VISIBLE);
}
});

mAdView.loadAd(adRequest);
}


private void toggleAds(boolean var) {
if (var)
var) {
        initialiseAds();
}
else {
ll_ads.setVisibility(View.GONE);
}
}

protected void onDestroy() {
super.onDestroy();
if (mAdView != null) {
mAdView.destroy();
}
}

@Override
protected void onPause() {
if (mAdView != null) {
mAdView.pause();
}
super.onPause();
}

I'm not certain if it's related to ads or firebase analytics (i'm using both).

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Nov 30, 2016, 2:40:16 PM11/30/16
to Google Mobile Ads SDK Developers
Hi Raj,

Thank you for the code snippet. Can you also link or send us your APK file as well?

Thanks,
Arjun Busani
Mobile Ads SDK Team

Raj Agrawal

unread,
Nov 30, 2016, 8:38:13 PM11/30/16
to Google Mobile Ads SDK Developers
I'd like to, but privately. Is there a way to do it on Google groups?

Thanks!

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Dec 1, 2016, 9:43:48 AM12/1/16
to Google Mobile Ads SDK Developers
Hi Raj,

Ill send you an email and you can reply directly to it.

Thanks,
Arjun Busani
Mobile Ads SDK Team

Alex

unread,
Dec 14, 2016, 2:47:41 PM12/14/16
to Google Mobile Ads SDK Developers
I'm using com.google.android.gms:play-services-ads:9.4.0

My app is only showing banner ads.

The only code that's executed is:

// Ads
AdRequest adRequest = new AdRequest.Builder()
//.addTestDevice(AdRequest.DEVICE_ID_EMULATOR)
.build();
binding.adViewBanner.loadAd(adRequest);

HOWEVER, the Activity "ComponentInfo" is attempted to be launched and my app doesn't contain IAP !

Reported against Android 6.0.1


Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Dec 14, 2016, 5:02:33 PM12/14/16
to Google Mobile Ads SDK Developers
Hi Alex,

Can you send us your complete crash logs? Also, I would suggest that you to upgrade to the latest Play Services version and see if it still crashes. 

Thanks,
Arjun Busani
Mobile Ads SDK Team

Soapy Soft

unread,
Jan 21, 2017, 4:01:05 AM1/21/17
to Google Mobile Ads SDK Developers
I'm getting this too. I use IAP, banner & interstitial Ads.

The device was a rooted XT320 (Same device as Daniele De Sanctis and Raj Agrawal, reported above) running 4.3.1

Cannot reproduce.

Library Versions:
classpath 'com.google.gms:google-services:3.0.0'

compile 'com.google.firebase:firebase-ads:10.0.1'
releaseCompile 'com.google.firebase:firebase-crash:10.0.1'
releaseCompile 'com.google.firebase:firebase-core:10.0.1'


Dump:
Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{uk.co.soapysoft.wifianalyzer/com.google.android.gms.ads.purchase.InAppPurchaseActivity}: java.lang.NullPointerException

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Jan 23, 2017, 10:46:55 AM1/23/17
to Google Mobile Ads SDK Developers
Hi there,

Thank you for reporting this to us. We still do not have any update on this issue but I will keep you posted.

Thanks,
Arjun Busani
Mobile Ads SDK Team

Martin Birk

unread,
Feb 5, 2017, 7:58:17 AM2/5/17
to Google Mobile Ads SDK Developers
The same happened to my app today.

The device sending the error is Motorola XT320 Defy Mini with Android 4.3.1


Den onsdag den 24. august 2016 kl. 13.11.36 UTC+2 skrev Yoann Hercouët:
I am getting those crashes recently:

Martin Birk

unread,
Feb 5, 2017, 8:10:02 AM2/5/17
to Google Mobile Ads SDK Developers
Could this be some kind of hacking attempt? 

Every day a device called "Batmobile XT320" is running my app, but it never really uses the app. It even runs older versions, and reinstalls the app several times. It has several signs og being an emulator (goldfish hardware, generic device etc.)

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Feb 6, 2017, 12:01:17 PM2/6/17
to Google Mobile Ads SDK Developers
Hi Martin,

Were you able to reproduce this issue locally? You can send us sample apps or code snippets for us to test it as well. Also, are you using a Custom ROM as it looks Batmobile XT320 is related to this?


Thanks,
Arjun Busani
Mobile Ads SDK Team

Deepika Uragayala- MobileAds SDK team

unread,
May 31, 2017, 11:34:25 AM5/31/17
to Google Mobile Ads SDK Developers
Hi Everyone,

Our team has fixed the issue. Let us know if you are still facing any issues related to InAppPurchaseActivity.

Regards,
Deepika Uragayala
Mobile Ads SDK Team
Reply all
Reply to author
Forward
0 new messages