I’m compiling an app with Enterprise and I don’t have (or need) Google Licensing in the app.
However when running the app on the device I get the following output in logcat:
V/Corona (15485): > Class.forName: CoronaProvider.licensing.google.LuaLoader
V/Corona (15485): WARNING: Could not load ‘LuaLoader’
W/System.err(15485): java.lang.ClassNotFoundException: CoronaProvider.licensing.google.LuaLoader
W/System.err(15485): at java.lang.Class.classForName(Native Method)
W/System.err(15485): at java.lang.Class.forName(Class.java:251)
W/System.err(15485): at java.lang.Class.forName(Class.java:216)
W/System.err(15485): at com.ansca.corona.NativeToJavaBridge.callLoadClass(NativeToJavaBridge.java:319)
W/System.err(15485): at com.ansca.corona.JavaToNativeShim.nativeResize(Native Method)
W/System.err(15485): at com.ansca.corona.JavaToNativeShim.resize(JavaToNativeShim.java:382)
W/System.err(15485): at com.ansca.corona.graphics.opengl.CoronaGLSurfaceView$CoronaRenderer.onSurfaceChanged(CoronaGLSurfaceView.java:374)
W/System.err(15485): at com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1611)
W/System.err(15485): at com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1377)
W/System.err(15485): Caused by: java.lang.NoClassDefFoundError: CoronaProvider/licensing/google/LuaLoader
W/System.err(15485): … 9 more
If I add the classes.jar file for Google Licensing from the Corona plugins folder to my project, the messages go away.
I see that liblicensing.so is included in the default Corona android lib. I don’t use or need the licensing for this particular project, so adding it to the project seems like an unnecessary step.
The errors don’t cause any problems for the app. It’s just I don’t want any unnecessary errors in the log.
Is there any way for you guys to add a check that it’s needed before trying to initialize it, or should I just keep adding classes.jar to all Android projects regardless if it’s used or not?