Vungle init crash on Android

Corona SDK 2014.2393 (Enterprise)
Android 4.4.4 (Google Nexus 7)
 
I’m getting a crash when trying to implement Vungle on Android.
I must be missing something simple, but I’ve been staring at this for a while and have no clue.
 
I’ve got the following config for Vungle in my manifest, and I’ve linked all jars, but I still get a crash.
 
<activity android:name=“com.vungle.publisher.FullScreenAdActivity”
                  android:configChanges=“keyboardHidden|orientation|screenSize”
                  android:theme="@android:style/Theme.NoTitleBar.Fullscreen"/>
 

<service android:name=“com.vungle.publisher.VungleService”
                 android:exported=“false”/>
 

Here’s the output from logcat:

V/Corona  (19722): > Class.forName: CoronaProvider.ads.vungle.LuaLoader
V/Corona  (19722): < Class.forName: CoronaProvider.ads.vungle.LuaLoader
V/Corona  (19722): Loading via reflection: CoronaProvider.ads.vungle.LuaLoader
W/dalvikvm(19722): Unable to resolve superclass of Lcom/vungle/publisher/FullScreenAdActivity; (294)
W/dalvikvm(19722): Link of class ‘Lcom/vungle/publisher/FullScreenAdActivity;’ failed
E/dalvikvm(19722): Could not find class ‘com.vungle.publisher.FullScreenAdActivity’, referenced from method com.vungle.publisher.inject.ConfigurablePublisherModule$$ModuleAdapter$ProvideFullScreenAdActivityClassProvidesAdapter.get
W/dalvikvm(19722): VFY: unable to resolve const-class 3164 (Lcom/vungle/publisher/FullScreenAdActivity;) in Lcom/vungle/publisher/inject/ConfigurablePublisherModule$$ModuleAdapter$ProvideFullScreenAdActivityClassProvidesAdapter;
W/System.err(19722): com.naef.jnlua.LuaRuntimeException: java.lang.NoClassDefFoundError: com.vungle.publisher.FullScreenAdActivity
W/System.err(19722): Java Stack Trace:
W/System.err(19722):    com.vungle.publisher.inject.ConfigurablePublisherModule$$ModuleAdapter$ProvideFullScreenAdActivityClassProvidesAdapter.get(vungle:488)
W/System.err(19722):    com.vungle.publisher.inject.ConfigurablePublisherModule$$ModuleAdapter$ProvideFullScreenAdActivityClassProvidesAdapter.get(vungle:472)
W/System.err(19722):    com.vungle.publisher.dh.injectMembers(vungle:120)
W/System.err(19722):    com.vungle.publisher.cs$a.a(vungle:281)
W/System.err(19722):    com.vungle.publisher.VunglePubBase.init(vungle:119)
W/System.err(19722):    com.vungle.publisher.VunglePub.init(vungle:45)
W/System.err(19722):    CoronaProvider.ads.vungle.LuaLoader.init(LuaLoader.java:160)
W/System.err(19722):    CoronaProvider.ads.vungle.LuaLoader$InitWrapper.invoke(LuaLoader.java:129)
W/System.err(19722):    com.naef.jnlua.LuaState.lua_pcall(Native Method)
W/System.err(19722):    com.naef.jnlua.LuaState.call(Unknown Source)
W/System.err(19722):    com.ansca.corona.CoronaLua.dispatchEvent(CoronaLua.java:100)
W/System.err(19722):    network.NetworkRequest$LuaCallback$1.executeUsing(NetworkRequest.java:603)
W/System.err(19722):    com.ansca.corona.CoronaRuntimeTaskDispatcher$TaskEvent.Send(CoronaRuntimeTaskDispatcher.java:148)
W/System.err(19722):    com.ansca.corona.events.EventManager.sendEvents(EventManager.java:87)
W/System.err(19722):    com.ansca.corona.Controller.updateRuntimeState(Controller.java:281)
W/System.err(19722):    com.ansca.corona.graphics.opengl.CoronaGLSurfaceView$CoronaRenderer.onDrawFrame(CoronaGLSurfaceView.java:417)
W/System.err(19722):    com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1622)
W/System.err(19722):    com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1377)
W/System.err(19722):    at com.naef.jnlua.LuaState.lua_pcall(Native Method)
W/System.err(19722):    at com.naef.jnlua.LuaState.call(Unknown Source)
W/System.err(19722):    at com.ansca.corona.CoronaLua.dispatchEvent(CoronaLua.java:100)
W/System.err(19722):    at network.NetworkRequest$LuaCallback$1.executeUsing(NetworkRequest.java:603)
W/System.err(19722):    at com.ansca.corona.CoronaRuntimeTaskDispatcher$TaskEvent.Send(CoronaRuntimeTaskDispatcher.java:148)
W/System.err(19722):    at com.ansca.corona.events.EventManager.sendEvents(EventManager.java:87)
W/System.err(19722):    at com.ansca.corona.Controller.updateRuntimeState(Controller.java:281)
W/System.err(19722):    at com.ansca.corona.graphics.opengl.CoronaGLSurfaceView$CoronaRenderer.onDrawFrame(CoronaGLSurfaceView.java:417)
W/System.err(19722):    at com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1622)
W/System.err(19722):    at com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1377)

Any clues would be appreciated.

New day, fresh eyes.  I found the issue  :).

Apparently the Vungle plugin is dependent on android-support-v13.jar as well.

After including that library, everything works properly.

The library is missing in the Corona Enterprise plugins download, and it wasn’t made clear in the Corona Enterprise plugin directory structure that this library was necessary.

It was only after reading the GitHub documentation that I found a reference to this library.

Great! Glad you found the issue. If you have further questions, you can also email us at tech-support@vungle.com :slight_smile:

Jordyn / Vungle

@jordyn

Since android-support-v13.jar is required, I think it’d be a good idea to include it in the Enterprise plugins folder together with the other jar files.

We’ve discussed it with Corona, and for now, it will stay like this: the support library is added for all server builds. Enterprise users still have to add it on their own. It may change in the future, but that’s more up to Corona.

We will put a note in the docs to make things more clear, though :slight_smile:

Jordyn / Vungle

New day, fresh eyes.  I found the issue  :).

Apparently the Vungle plugin is dependent on android-support-v13.jar as well.

After including that library, everything works properly.

The library is missing in the Corona Enterprise plugins download, and it wasn’t made clear in the Corona Enterprise plugin directory structure that this library was necessary.

It was only after reading the GitHub documentation that I found a reference to this library.

Great! Glad you found the issue. If you have further questions, you can also email us at tech-support@vungle.com :slight_smile:

Jordyn / Vungle

@jordyn

Since android-support-v13.jar is required, I think it’d be a good idea to include it in the Enterprise plugins folder together with the other jar files.

We’ve discussed it with Corona, and for now, it will stay like this: the support library is added for all server builds. Enterprise users still have to add it on their own. It may change in the future, but that’s more up to Corona.

We will put a note in the docs to make things more clear, though :slight_smile:

Jordyn / Vungle