Hi,
I’m experiencing issue with admob in target. For the some reason I’m getting following exception when APK is calling ads.init first time:
I/Corona (19885): Called ads.init(admob, ca-app-pub-xxxyyy, adListener)
V/Corona (19885): > Class.forName: CoronaProvider.ads.admob.LuaLoader
V/Corona (19885): WARNING: Could not load ‘LuaLoader’
W/System.err(19885): java.lang.ClassNotFoundException: CoronaProvider.ads.admob.
LuaLoader
W/System.err(19885): at java.lang.Class.classForName(Native Method)
W/System.err(19885): at java.lang.Class.forName(Class.java:251)
W/System.err(19885): at java.lang.Class.forName(Class.java:216)
W/System.err(19885): at com.ansca.corona.NativeToJavaBridge.callLoadClass(Nat
iveToJavaBridge.java:319)
W/System.err(19885): at com.ansca.corona.JavaToNativeShim.nativeRender(Native
Method)
W/System.err(19885): at com.ansca.corona.JavaToNativeShim.render(JavaToNative
Shim.java:184)
W/System.err(19885): at com.ansca.corona.Controller.updateRuntimeState(Contro
ller.java:293)
W/System.err(19885): at com.ansca.corona.graphics.opengl.CoronaGLSurfaceView$
CoronaRenderer.onDrawFrame(CoronaGLSurfaceView.java:417)
W/System.err(19885): at com.ansca.corona.graphics.opengl.GLSurfaceView$GLThre
ad.guardedRun(GLSurfaceView.java:1622)
W/System.err(19885): at com.ansca.corona.graphics.opengl.GLSurfaceView$GLThre
ad.run(GLSurfaceView.java:1377)
W/System.err(19885): Caused by: java.lang.NoClassDefFoundError: CoronaProvider/a
ds/admob/LuaLoader
W/System.err(19885): … 10 more
W/System.err(19885): Caused by: java.lang.ClassNotFoundException: Didn’t find cl
ass “CoronaProvider.ads.admob.LuaLoader” on path: DexPathList[[zip file "/data/a
pp/com.gmail.xxxxxxxxx.yyyy.Skiing_Snowman-1.apk"],nativeLibraryDirectories=[/dat
a/app-lib/com.gmail.xxxxxxxxx.yyyy.apk_name-1, /vendor/lib, /system/lib]]
W/System.err(19885): at dalvik.system.BaseDexClassLoader.findClass(BaseDexCla
ssLoader.java:67)
W/System.err(19885): at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
W/System.err(19885): at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
W/System.err(19885): … 10 more
I/Corona (19885): Runtime error
I/Corona (19885): ERROR: Could not load provider (admob) due to the following r
eason: module ‘CoronaProvider.ads.admob’ not found:resource (CoronaProvider.ads.
admob.lu) does not exist in archive
I/Corona (19885): no field package.preload[‘CoronaProvider.ads.admob’]
I/Corona (19885): no file ‘(null)/CoronaProvider.ads.admob.lua’
I/Corona (19885): no file ‘(null)/CoronaProvider.ads.admob.lua’
I/Corona (19885): no file '/data/app-lib/com.gmail.xxxxxxxxx.yyyy.apk_name
owman-1/libCoronaProvider.ads.admob.so’
I/Corona (19885): no file ‘./CoronaProvider.ads.admob.so’
I/Corona (19885): no file ‘(null)/CoronaProvider.ads.admob.so’
I/Corona (19885): no file '/data/app-lib/com.gmail.xxxxxxxxx.yyyy.apk_name
owman-1/libCoronaProvider.so’
I/Corona (19885): no file ‘./CoronaProvider.so’
I/Corona (19885): no file ‘(null)/CoronaProvider.so’.
I/Corona (19885): stack traceback:
I/Corona (19885): [C]: in function ‘assert’
I/Corona (19885): ?: in function ‘requireProvider’
I/Corona (19885): ?: in function ‘setCurrentProvider’
I/Corona (19885): ?: in function ‘init’
I/Corona (19885): ?: in function <?:168>
I/Corona (19885): ?: in function ‘dispatchEvent’
I/Corona (19885): ?: in function <?:861>
I/Corona (19885): (tail call): ?
I/Corona (19885): ?: in function <?:498>
I/Corona (19885): ?: in function <?:221>
D/STATUSBAR-NetworkController( 1189): refreshSignalCluster: data=0 bt=false
D/STATUSBAR-IconMerger( 1189): checkOverflow(1368), More:false, Req:false Child:
My build.settings looks following kind:
– Supported values for orientation:
– portrait, portraitUpsideDown, landscapeLeft, landscapeRight
settings = {
orientation = {
default = “landscapeRight”,
supported = { “landscapeRight”, }
},
android =
{
usesPermissions =
{
“android.permission.INTERNET”,
“android.permission.ACCESS_NETWORK_STATE”,
},
},
plugins =
{
[“plugin.google.play.services”] =
{
publisherId = “com.coronalabs”
},
},
}
I cannot figure out why I’m missing CoronaProvider.ads.admob.lu.