SDKBOX ads not working on android

SDKBOX ads not working on android
0.0 0

#1

Hello,

I have imported sdkbox ads, chartboost, admob into my cocos2d-x project.

But I am having error with showing ads on android (eclipse) (cocos2d-x-3.13.1) (Everything works on iOS)

03-19 08:54:09.366: E/TrackingInfo(1346): reqAdvertisingIdentifier Exception:java.lang.reflect.InvocationTargetException
03-19 08:54:33.676: E/dalvikvm(1346): Could not find class 'com.google.android.gms.internal.zzaqb', referenced from method com.google.android.gms.internal.zzdq.zze
03-19 08:55:30.336: E/SoundPool(1346): Sample rate (96000) out of range

Does someone have clue what is the problem?


#2

Can this issue be caused because I am ussing same advertisement IDs for iOS and Android ?


#3

Looks like the google play service library are missing


#4

I cannot find the way to solve this issue, can you help me with this?
How I should add google play services? (sdkbox list shows me that google play services is installed)
Here is full log.

Log:
03-20 17:41:34.620: I/SDKBOX_CORE(882): Sdkbox Droid starting.
03-20 17:41:34.620: I/SDKBOX_CORE(882): Sdkbox got VM.
03-20 17:41:34.630: I/SDKBOX_CORE(882): Sdkbox jni initialized.
03-20 17:41:35.070: E/TrackingInfo(882): reqAdvertisingIdentifier Exception:java.lang.reflect.InvocationTargetException
03-20 17:41:35.950: I/SDKBOX_CORE(882): Initialization request for plugin: ‘com/sdkbox/plugin/PluginChartboost’
03-20 17:41:36.220: I/Chartboost(882): Trying to find unknown ad: Default.
03-20 17:41:36.580: I/SDKBOX_CORE(882): Initialization request for plugin: ‘com/sdkbox/plugin/PluginAdMob’
03-20 17:41:36.790: I/SDKBOX_CORE(882): Initialization request for plugin: ‘com/sdkbox/plugin/PluginSdkboxAds’
03-20 17:41:36.830: I/SdkboxAds(882): Initialization request for AdUnit: ‘AdMob’
03-20 17:41:36.890: I/SdkboxAds(882): Initialization request for AdUnit: ‘Chartboost’
03-20 17:41:37.500: I/dalvikvm(882): Could not find method android.app.Activity.checkSelfPermission, referenced from method com.chartboost.sdk.c.b
03-20 17:41:37.500: W/dalvikvm(882): VFY: unable to resolve virtual method 33: Landroid/app/Activity;.checkSelfPermission (Ljava/lang/String;)I
03-20 17:41:38.420: W/System.err(882): java.lang.Exception: Chartboost Integration Warning: your account has been set to advertiser only. This function has been disabled. Please contact support if you expect this call to function.
03-20 17:41:38.420: W/System.err(882): at com.chartboost.sdk.Chartboost.p(SourceFile:1533)
03-20 17:41:38.420: W/System.err(882): at com.chartboost.sdk.Chartboost.cacheInterstitial(SourceFile:845)
03-20 17:41:38.430: W/System.err(882): at com.sdkbox.plugin.PluginChartboost$4.run(PluginChartboost.java:170)
03-20 17:41:38.430: W/System.err(882): at android.os.Handler.handleCallback(Handler.java:733)
03-20 17:41:38.430: W/System.err(882): at android.os.Handler.dispatchMessage(Handler.java:95)
03-20 17:41:38.430: W/System.err(882): at android.os.Looper.loop(Looper.java:136)
03-20 17:41:38.430: W/System.err(882): at android.app.ActivityThread.main(ActivityThread.java:5017)
03-20 17:41:38.430: W/System.err(882): at java.lang.reflect.Method.invokeNative(Native Method)
03-20 17:41:38.430: W/System.err(882): at java.lang.reflect.Method.invoke(Method.java:515)
03-20 17:41:38.430: W/System.err(882): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
03-20 17:41:38.430: W/System.err(882): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
03-20 17:41:38.430: W/System.err(882): at dalvik.system.NativeStart.main(Native Method)
03-20 17:41:38.830: I/dalvikvm(882): Could not find method android.content.pm.PackageManager.getPackageInstaller, referenced from method com.google.android.gms.common.zze.zzl
03-20 17:41:38.840: W/dalvikvm(882): VFY: unable to resolve virtual method 533: Landroid/content/pm/PackageManager;.getPackageInstaller ()Landroid/content/pm/PackageInstaller;
03-20 17:41:38.920: W/GooglePlayServicesUtil(882): Cannot find Google Play services package name.
03-20 17:41:38.920: W/GooglePlayServicesUtil(882): android.content.pm.PackageManager$NameNotFoundException: com.google.android.gms
03-20 17:41:38.920: W/GooglePlayServicesUtil(882): at android.app.ApplicationPackageManager.getPackageInfo(ApplicationPackageManager.java:82)
03-20 17:41:38.920: W/GooglePlayServicesUtil(882): at com.google.android.gms.internal.zzro.getPackageInfo(Unknown Source)
03-20 17:41:38.920: W/GooglePlayServicesUtil(882): at com.google.android.gms.common.zze.zzby(Unknown Source)
03-20 17:41:38.920: W/GooglePlayServicesUtil(882): at com.google.android.gms.common.zze.zzbx(Unknown Source)
03-20 17:41:38.920: W/GooglePlayServicesUtil(882): at com.google.android.gms.common.zze.zzbs(Unknown Source)
03-20 17:41:38.920: W/GooglePlayServicesUtil(882): at com.google.android.gms.common.zze.isGooglePlayServicesAvailable(Unknown Source)
03-20 17:41:38.920: W/GooglePlayServicesUtil(882): at com.google.android.gms.common.zzc.isGooglePlayServicesAvailable(Unknown Source)
03-20 17:41:38.920: W/GooglePlayServicesUtil(882): at com.google.android.gms.ads.internal.util.client.zza.zzar(Unknown Source)
03-20 17:41:38.920: W/GooglePlayServicesUtil(882): at com.google.android.gms.ads.internal.client.zzl.zza(Unknown Source)
03-20 17:41:38.920: W/GooglePlayServicesUtil(882): at com.google.android.gms.ads.internal.client.zzl.zzb(Unknown Source)
03-20 17:41:38.920: W/GooglePlayServicesUtil(882): at com.google.android.gms.ads.internal.client.zzaf.zzam(Unknown Source)
03-20 17:41:38.920: W/GooglePlayServicesUtil(882): at com.google.android.gms.ads.internal.client.zzaf.zza(Unknown Source)
03-20 17:41:38.920: W/GooglePlayServicesUtil(882): at com.google.android.gms.ads.InterstitialAd.loadAd(Unknown Source)
03-20 17:41:38.920: W/GooglePlayServicesUtil(882): at com.sdkbox.plugin.PluginAdMob$1.run(PluginAdMob.java:236)
03-20 17:41:38.920: W/GooglePlayServicesUtil(882): at android.os.Handler.handleCallback(Handler.java:733)
03-20 17:41:38.920: W/GooglePlayServicesUtil(882): at android.os.Handler.dispatchMessage(Handler.java:95)
03-20 17:41:38.920: W/GooglePlayServicesUtil(882): at android.os.Looper.loop(Looper.java:136)
03-20 17:41:38.920: W/GooglePlayServicesUtil(882): at android.app.ActivityThread.main(ActivityThread.java:5017)
03-20 17:41:38.920: W/GooglePlayServicesUtil(882): at java.lang.reflect.Method.invokeNative(Native Method)
03-20 17:41:38.920: W/GooglePlayServicesUtil(882): at java.lang.reflect.Method.invoke(Method.java:515)
03-20 17:41:38.920: W/GooglePlayServicesUtil(882): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
03-20 17:41:38.920: W/GooglePlayServicesUtil(882): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
03-20 17:41:38.920: W/GooglePlayServicesUtil(882): at dalvik.system.NativeStart.main(Native Method)
03-20 17:41:38.920: W/GooglePlayServicesUtil(882): Google Play Store is missing.
03-20 17:41:40.440: I/dalvikvm(882): Could not find method android.security.NetworkSecurityPolicy.getInstance, referenced from method com.google.android.gms.internal.zzjx.zzb
03-20 17:41:40.450: W/dalvikvm(882): VFY: unable to resolve static method 1826: Landroid/security/NetworkSecurityPolicy;.getInstance ()Landroid/security/NetworkSecurityPolicy;
03-20 17:41:41.340: I/chromium(882): [INFO:library_loader_hooks.cc(112)] Chromium logging enabled: level = 0, default verbosity = 0
03-20 17:41:41.380: I/BrowserProcessMain(882): Initializing chromium process, renderers=0
03-20 17:41:42.000: W/chromium(882): [WARNING:proxy_service.cc(888)] PAC support disabled because there is no system implementation
03-20 17:41:42.190: I/Ads(882): Starting ad request.
03-20 17:41:42.570: W/GooglePlayServicesUtil(882): Google Play Store is missing.
03-20 17:41:42.590: I/Ads(882): Starting ad request.
03-20 17:41:42.760: W/GooglePlayServicesUtil(882): Google Play Store is missing.
03-20 17:41:42.760: I/Ads(882): Starting ad request.
03-20 17:41:42.960: W/System.err(882): java.lang.Exception: Chartboost Integration Warning: your account has been set to advertiser only. This function has been disabled. Please contact support if you expect this call to function.
03-20 17:41:42.960: W/System.err(882): at com.chartboost.sdk.Chartboost.p(SourceFile:1533)
03-20 17:41:42.960: W/System.err(882): at com.chartboost.sdk.Chartboost.cacheInterstitial(SourceFile:845)
03-20 17:41:42.960: W/System.err(882): at com.sdkbox.plugin.PluginChartboost$4.run(PluginChartboost.java:170)
03-20 17:41:42.970: W/System.err(882): at android.app.Activity.runOnUiThread(Activity.java:4713)
03-20 17:41:42.970: W/System.err(882): at com.sdkbox.plugin.SDKBox.runOnMainThread(SDKBox.java:252)
03-20 17:41:42.970: W/System.err(882): at com.sdkbox.plugin.PluginChartboost.cache(PluginChartboost.java:159)
03-20 17:41:42.970: W/System.err(882): at com.sdkbox.plugin.PluginChartboost.cacheControl(PluginChartboost.java:465)
03-20 17:41:42.980: W/System.err(882): at com.sdkbox.plugin.PluginChartboost$1.run(PluginChartboost.java:67)
03-20 17:41:42.980: W/System.err(882): at android.os.Handler.handleCallback(Handler.java:733)
03-20 17:41:42.980: W/System.err(882): at android.os.Handler.dispatchMessage(Handler.java:95)
03-20 17:41:42.980: W/System.err(882): at android.os.Looper.loop(Looper.java:136)
03-20 17:41:42.980: W/System.err(882): at android.app.ActivityThread.main(ActivityThread.java:5017)
03-20 17:41:42.980: W/System.err(882): at java.lang.reflect.Method.invokeNative(Native Method)
03-20 17:41:42.980: W/System.err(882): at java.lang.reflect.Method.invoke(Method.java:515)
03-20 17:41:43.020: W/System.err(882): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
03-20 17:41:43.020: W/System.err(882): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
03-20 17:41:43.020: W/System.err(882): at dalvik.system.NativeStart.main(Native Method)
03-20 17:41:43.030: I/SdkboxAds(882): Registered AdUnits
03-20 17:41:43.030: I/SdkboxAds(882): AdMob = 1.0.0
03-20 17:41:43.030: I/SdkboxAds(882): Chartboost = Unit 1.0.0
03-20 17:41:44.090: I/dalvikvm(882): Could not find method com.google.android.gms.gass.internal.zza.zzg, referenced from method com.google.android.gms.internal.zzax.zzcp
03-20 17:41:44.100: W/dalvikvm(882): VFY: unable to resolve static method 29914: Lcom/google/android/gms/gass/internal/zza;.zzg (Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Lcom/google/android/gms/internal/zzae$zza;
03-20 17:41:44.370: W/dalvikvm(882): VFY: unable to resolve static field 6806 (API) in Lcom/google/android/gms/clearcut/zzb;
03-20 17:41:44.820: W/GooglePlayServicesUtil(882): Google Play services is missing.
03-20 17:41:44.820: W/GooglePlayServicesUtil(882): Google Play Store is missing.
03-20 17:41:46.570: W/GooglePlayServicesUtil(882): Google Play services is missing.
03-20 17:41:46.570: W/GooglePlayServicesUtil(882): Google Play Store is missing.
03-20 17:41:47.750: W/dalvikvm(882): VFY: unable to find class referenced in signature (Landroid/support/customtabs/CustomTabsSession;)
03-20 17:41:47.750: W/GooglePlayServicesUtil(882): Google Play services is missing.
03-20 17:41:47.750: W/GooglePlayServicesUtil(882): Google Play Store is missing.
03-20 17:41:49.300: I/dalvikvm(882): Could not find method android.support.customtabs.CustomTabsSession.mayLaunchUrl, referenced from method com.google.android.gms.internal.zzdq.mayLaunchUrl
03-20 17:41:49.300: W/dalvikvm(882): VFY: unable to resolve virtual method 1860: Landroid/support/customtabs/CustomTabsSession;.mayLaunchUrl (Landroid/net/Uri;Landroid/os/Bundle;Ljava/util/List;)Z
03-20 17:41:49.560: W/dalvikvm(882): VFY: unable to find class referenced in signature (Landroid/support/customtabs/CustomTabsClient;)
03-20 17:41:52.810: I/dalvikvm(882): Could not find method android.support.customtabs.CustomTabsClient.warmup, referenced from method com.google.android.gms.internal.zzdq.zza
03-20 17:41:52.820: W/dalvikvm(882): VFY: unable to resolve virtual method 1856: Landroid/support/customtabs/CustomTabsClient;.warmup (J)Z
03-20 17:41:53.060: W/dalvikvm(882): Unable to resolve superclass of Lcom/google/android/gms/internal/zzaqb; (390)
03-20 17:41:53.060: W/dalvikvm(882): Link of class ‘Lcom/google/android/gms/internal/zzaqb;’ failed
03-20 17:41:53.060: E/dalvikvm(882): Could not find class ‘com.google.android.gms.internal.zzaqb’, referenced from method com.google.android.gms.internal.zzdq.zze
03-20 17:41:53.070: W/dalvikvm(882): VFY: unable to resolve new-instance 4806 (Lcom/google/android/gms/internal/zzaqb;) in Lcom/google/android/gms/internal/zzdq;
03-20 17:41:53.070: W/dalvikvm(882): VFY: unable to find class referenced in signature (Landroid/support/customtabs/CustomTabsSession;)
03-20 17:41:53.070: I/dalvikvm(882): Could not find method android.support.customtabs.CustomTabsClient.newSession, referenced from method com.google.android.gms.internal.zzdq.zzkl
03-20 17:41:53.070: W/dalvikvm(882): VFY: unable to resolve virtual method 1855: Landroid/support/customtabs/CustomTabsClient;.newSession (Landroid/support/customtabs/CustomTabsCallback;)Landroid/support/customtabs/CustomTabsSession;
03-20 17:41:53.760: W/dalvikvm(882): Unable to resolve superclass of Lcom/google/android/gms/internal/zzaqb; (390)
03-20 17:41:53.760: W/dalvikvm(882): Link of class ‘Lcom/google/android/gms/internal/zzaqb;’ failed
03-20 17:41:57.200: I/dalvikvm(882): Could not find method android.webkit.WebSettings.setMixedContentMode, referenced from method com.google.android.gms.internal.zzll.
03-20 17:41:57.200: W/dalvikvm(882): VFY: unable to resolve virtual method 11767: Landroid/webkit/WebSettings;.setMixedContentMode (I)V
03-20 17:41:57.530: I/dalvikvm-heap(882): Grow heap (frag case) to 3.626MB for 100240-byte allocation
03-20 17:41:57.670: I/dalvikvm-heap(882): Grow heap (frag case) to 4.700MB for 1127536-byte allocation
03-20 17:42:05.520: I/chromium(882): [INFO:CONSOLE(0)] “Document was loaded from Application Cache with manifest https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40.appcache”, source: https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40.html (0)
03-20 17:42:05.530: I/chromium(882): [INFO:CONSOLE(0)] “Application Cache Checking event”, source: https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40.html (0)
03-20 17:42:06.930: W/Ads(882): There was a problem getting an ad response. ErrorCode: 0
03-20 17:42:06.930: W/Ads(882): Failed to load ad: 0
03-20 17:42:06.960: I/chromium(882): [INFO:CONSOLE(0)] “Application Cache NoUpdate event”, source: https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40.html (0)
03-20 17:42:12.910: I/Ads(882): Received log message: Google:HTML You are using version 9.5 of the Google Play services Ads SDK. Please consider updating your SDK to the most recent SDK version to get the latest features and bug fixes. See http://goo.gl/r2TRzC for instructions on how to get the latest version of Google Play services.
03-20 17:42:13.000: W/Ads(882): Invalid unknown request error: [Cannot determine request type. Is your ad unit id correct?]
03-20 17:42:13.090: W/Ads(882): Invalid unknown request error: [Cannot determine request type. Is your ad unit id correct?]
03-20 17:42:13.110: I/Ads(882): Received log message: Google:HTML You are using version 9.5 of the Google Play services Ads SDK. Please consider updating your SDK to the most recent SDK version to get the latest features and bug fixes. See http://goo.gl/r2TRzC for instructions on how to get the latest version of Google Play services.
03-20 17:42:13.230: W/Ads(882): There was a problem getting an ad response. ErrorCode: 1
03-20 17:42:13.230: W/Ads(882): There was a problem getting an ad response. ErrorCode: 1
03-20 17:42:13.240: W/Ads(882): Failed to load ad: 1
03-20 17:42:13.240: W/Ads(882): Failed to load ad: 1


#5

Can you double check if there is a gps folder in your porject?

Also according to this message, you want to double check your chartboost account setting, usually you want to be a publisher

Chartboost Integration Warning: your account has been set to advertiser only. This function has been disabled.


#6

gps is in my project.

At the start I had problem with gps it wasn’t recognised and there was AndroidManifest.xml error @integer/google_play_services_version
Maybe I did something wrong.


#7

Maybe your testing device don’t have google play store? It says “Google Play Store is missing” on the error log