Crash app when used latest Android ima sdk

205 views
Skip to first unread message

Rajneesh Saini

unread,
Feb 5, 2015, 7:07:26 AM2/5/15
to ima...@googlegroups.com
I am using android ima sdk
I used Google Ads IMA SDK Android Samples v1.3
Used tag :

First tag is working properly.But in case of second I got that error:
   There was a problem requesting ads from the server caused by http response at 400 or 500 level.
 
I read some issue related it on ima sdk form.In which suggestion to use Latest android ima sdk.

But when I change/push latest android ima sdk(ima-android-sdk-beta8/9) in place of ima sdk(ima-android-sdk-beta3) used in that sample project.My application being crashed
Error Log:

02-05 17:32:21.833: E/AndroidRuntime(4164): FATAL EXCEPTION: main
02-05 17:32:21.833: E/AndroidRuntime(4164): java.lang.VerifyError: com/google/android/a/f
02-05 17:32:21.833: E/AndroidRuntime(4164): at com.google.ads.interactivemedia.v3.b.e.<init>(IMASDK:133)
02-05 17:32:21.833: E/AndroidRuntime(4164): at com.google.ads.interactivemedia.v3.b.e.<init>(IMASDK:125)
02-05 17:32:21.833: E/AndroidRuntime(4164): at com.google.ads.interactivemedia.v3.api.ImaSdkFactory.createAdsLoader(IMASDK:51)
02-05 17:32:21.833: E/AndroidRuntime(4164): at com.google.ads.interactivemedia.v3.samples.demoapp.DroidDemoActivity.createAdsLoader(DroidDemoActivity.java:128)
02-05 17:32:21.833: E/AndroidRuntime(4164): at com.google.ads.interactivemedia.v3.samples.demoapp.DroidDemoActivity.onCreate(DroidDemoActivity.java:88)
02-05 17:32:21.833: E/AndroidRuntime(4164): at android.app.Activity.performCreate(Activity.java:5020)
02-05 17:32:21.833: E/AndroidRuntime(4164): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
02-05 17:32:21.833: E/AndroidRuntime(4164): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)
02-05 17:32:21.833: E/AndroidRuntime(4164): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2211)
02-05 17:32:21.833: E/AndroidRuntime(4164): at android.app.ActivityThread.access$600(ActivityThread.java:149)
02-05 17:32:21.833: E/AndroidRuntime(4164): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1300)
02-05 17:32:21.833: E/AndroidRuntime(4164): at android.os.Handler.dispatchMessage(Handler.java:99)
02-05 17:32:21.833: E/AndroidRuntime(4164): at android.os.Looper.loop(Looper.java:153)
02-05 17:32:21.833: E/AndroidRuntime(4164): at android.app.ActivityThread.main(ActivityThread.java:4987)
02-05 17:32:21.833: E/AndroidRuntime(4164): at java.lang.reflect.Method.invokeNative(Native Method)
02-05 17:32:21.833: E/AndroidRuntime(4164): at java.lang.reflect.Method.invoke(Method.java:511)
02-05 17:32:21.833: E/AndroidRuntime(4164): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:821)
02-05 17:32:21.833: E/AndroidRuntime(4164): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:584)
02-05 17:32:21.833: E/AndroidRuntime(4164): at dalvik.system.NativeStart.main(Native Method)
02-05 17:32:21.833: E/Posix(4164): [CDS]Libcore_io_Posix-throwErrnoException, functionName: remove; errno: No such file or directory
02-05 17:32:21.834: E/Posix(4164): [CDS]Libcore_io_Posix-throwErrnoException, functionName: remove; errno: No such file or directory
02-05 17:32:21.834: E/Posix(4164): [CDS]Libcore_io_Posix-throwErrnoException, functionName: remove; errno: No such file or directory

Please do needful help!!

Shawn Busolits (IMA SDK Team)

unread,
Feb 5, 2015, 10:31:48 AM2/5/15
to ima...@googlegroups.com
Hi Rajneesh,

Starting with beta 7, the IMA SDK requires Google Play Services. We saw this error when we didn't have Google Play Services bundled with an implementation, and I'm guessing that's what's causing your issue as well. You can follow the Android docs for adding Google Play Services to your project. Once you add Play Services, you'll need to add a reference to it in your manifest. You can see how we did that in our Basic Example (that link leads directly to the line required in your manifest). If you have any other questions let us know!

Thanks,
Shawn Busolits
IMA SDK Team

Rajneesh Saini

unread,
Feb 5, 2015, 11:36:54 PM2/5/15
to ima...@googlegroups.com
Hi Shawn,

            Thanks a lot for your valuable reply. Now one crash problem is resolved but still i am getting a new error response from IMA SDK(used ima-android-sdk-beta9)


When i test this url in this link : 

Then my tag url is working properly but when i use in ANDROID IMA SDK then it gives this error :
 
Error : Unable to request ads from server due to network error. 

When i used below tag url :

Then i got this error : The vast response document is empty.

I will wait for your kind response. Thanks.

Shawn Busolits (IMA SDK Team)

unread,
Feb 6, 2015, 12:48:11 PM2/6/15
to ima...@googlegroups.com
Hi Rajneesh,

Can you share your tag with me? Also, where did you get the second tag from? If it works in the VSI but not in the Android app then it sounds like a serving error. For help with a serving error you'd need to contact the folks over at AdSense or AdX support, depending on which you're using. If you let me know which you're using I can send you the correct support link.

Thanks,
Shawn Busolits
IMA SDK Team
Reply all
Reply to author
Forward
0 new messages