Sdkbox inmobi crashing

I updated sdkbox today and I am finding that as soon as I display an Interstitial ad my app crashes on android. This is happening 99% of the time.

can you show crash log?

  • there I explain, how I succeed to do it. What language and IDE do you use? Especially for apk building?

Just rebuilding the app and will get the logcat. Think I should explain a bit more so people are clear on whats happening for me.

My project is created with Cocos Creator.

The inMobi ads were working fine.

I had to check my project out of source control as moved to different machine.

As no sdkbox in source control due to ignore file I had to download sdkbox and reimport inmobi to project.

app crashing on inmobi.

So I updated sdkbox on the previous machine where it is all working

Now app crashes on that machine also. So the sdkbox update has caused an issue.

11-11 07:44:37.611 3487 3563 V MARsPolicyManager: updatePackagesScore PackageInfo name – com.pjamalabs.peeq

11-11 07:44:37.611 3487 3564 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:830 com.android.server.policy.PhoneWindowManager.notifyToSSRM:8648 com.android.server.policy.PhoneWindowManager.access$1500:309 com.android.server.policy.PhoneWindowManager$PolicyHandler.handleMessage:1208 android.os.Handler.dispatchMessage:102

11-11 07:44:37.621 12162 12162 I art : Rejecting re-init on previously-failed class java.lang.Class<com.inmobi.ads.NativeStrandViewFactory$PicassoCallback>

11-11 07:44:37.621 12162 12162 I art : Rejecting re-init on previously-failed class java.lang.Class<com.inmobi.ads.NativeStrandViewFactory$PicassoCallback>

11-11 07:44:37.681 3068 16753 V MediaPlayerService: Create new media retriever from pid 12162

11-11 07:44:37.691 12162 12162 D AndroidRuntime: Shutting down VM

11-11 07:44:37.691 12162 12162 E AndroidRuntime: FATAL EXCEPTION: main

11-11 07:44:37.691 12162 12162 E AndroidRuntime: Process: com.pjamalabs.peeq, PID: 12162

11-11 07:44:37.691 12162 12162 E AndroidRuntime: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/squareup/picasso/Picasso$Builder;

11-11 07:44:37.691 12162 12162 E AndroidRuntime: at com.inmobi.commons.core.a.a.a(PicassoWrapper.java:41)

11-11 07:44:37.691 12162 12162 E AndroidRuntime: at com.inmobi.ads.NativeStrandViewFactory.a(NativeStrandViewFactory.java:664)

11-11 07:44:37.691 12162 12162 E AndroidRuntime: at com.inmobi.ads.NativeStrandViewFactory.a(NativeStrandViewFactory.java:56)

11-11 07:44:37.691 12162 12162 E AndroidRuntime: at com.inmobi.ads.NativeStrandViewFactory$4.a(NativeStrandViewFactory.java:335)

11-11 07:44:37.691 12162 12162 E AndroidRuntime: at com.inmobi.ads.NativeStrandViewFactory$c.a(NativeStrandViewFactory.java:200)

11-11 07:44:37.691 12162 12162 E AndroidRuntime: at com.inmobi.ads.NativeStrandViewFactory.a(NativeStrandViewFactory.java:475)

11-11 07:44:37.691 12162 12162 E AndroidRuntime: at com.inmobi.ads.z.b(NativeStrandLayoutInflater.java:204)

11-11 07:44:37.691 12162 12162 E AndroidRuntime: at com.inmobi.ads.z.a(NativeStrandLayoutInflater.java:148)

11-11 07:44:37.691 12162 12162 E AndroidRuntime: at com.inmobi.ads.z.a(NativeStrandLayoutInflater.java:105)

11-11 07:44:37.691 12162 12162 E AndroidRuntime: at com.inmobi.ads.ag.a(NativeV2AdContainer.java:342)

11-11 07:44:37.691 12162 12162 E AndroidRuntime: at com.inmobi.ads.am.a(NativeV2VideoAdContainer.java:319)

11-11 07:44:37.691 12162 12162 E AndroidRuntime: at com.inmobi.rendering.InMobiAdActivity.c(InMobiAdActivity.java:512)

11-11 07:44:37.691 12162 12162 E AndroidRuntime: at com.inmobi.rendering.InMobiAdActivity.onCreate(InMobiAdActivity.java:208)

11-11 07:44:37.691 12162 12162 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6876)

11-11 07:44:37.691 12162 12162 E AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1135)

11-11 07:44:37.691 12162 12162 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3207)

11-11 07:44:37.691 12162 12162 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3350)

11-11 07:44:37.691 12162 12162 E AndroidRuntime: at android.app.ActivityThread.access$1100(ActivityThread.java:222)

11-11 07:44:37.691 12162 12162 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1795)

11-11 07:44:37.691 12162 12162 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)

11-11 07:44:37.691 12162 12162 E AndroidRuntime: at android.os.Looper.loop(Looper.java:158)

11-11 07:44:37.691 12162 12162 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7229)

11-11 07:44:37.691 12162 12162 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)

11-11 07:44:37.691 12162 12162 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)

11-11 07:44:37.691 12162 12162 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

11-11 07:44:37.691 12162 12162 E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: Didn’t find class “com.squareup.picasso.Picasso$Builder” on path: DexPathList[[zip file “/data/app/com.pjamalabs.peeq-1/base.apk”],nativeLibraryDirectories=[/data/app/com.pjamalabs.peeq-1/lib/arm, /data/app/com.pjamalabs.peeq-1/base.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]]

11-11 07:44:37.691 12162 12162 E AndroidRuntime: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)

11-11 07:44:37.691 12162 12162 E AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:511)

11-11 07:44:37.691 12162 12162 E AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:469)

11-11 07:44:37.691 12162 12162 E AndroidRuntime: … 25 more

11-11 07:44:37.691 12162 12162 E AndroidRuntime: Suppressed: java.lang.ClassNotFoundException: com.squareup.picasso.Picasso$Builder

11-11 07:44:37.691 12162 12162 E AndroidRuntime: at java.lang.Class.classForName(Native Method)

11-11 07:44:37.691 12162 12162 E AndroidRuntime: at java.lang.BootClassLoader.findClass(ClassLoader.java:781)

11-11 07:44:37.691 12162 12162 E AndroidRuntime: at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)

11-11 07:44:37.691 12162 12162 E AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:504)

11-11 07:44:37.691 12162 12162 E AndroidRuntime: … 26 more

11-11 07:44:37.691 12162 12162 E AndroidRuntime: Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available

11-11 07:44:37.701 3487 6484 W ActivityManager: Force finishing activity com.pjamalabs.peeq/com.inmobi.rendering.InMobiAdActivity

11-11 07:44:37.701 3487 6484 D InputDispatcher: Focused application set to: xxxx

11-11 07:44:37.701 3487 6484 W ActivityManager: Force finishing activity com.pjamalabs.peeq/org.cocos2dx.javascript.AppActivity

11-11 07:44:37.701 3487 6484 D FocusedStackFrame: Set to : 0

we will fix it asap

thank you for the support.

you can download http://repo1.maven.org/maven2/com/squareup/picasso/picasso/2.5.2/picasso-2.5.2.jar,
and put it to your project libs folder, maybe here (./build/jsb-default/frameworks/runtime-src/proj.android/libs)
and try

1 Like

compiling now will get back to you when iv tested it.

That seems to have solved the issue. I will continue testing and if I have any issues I will post back. Otherwise though thank you so much for the quick response and fix :slight_smile: