ANDROID:
-
Added the build.settings plugin information (unneeded right?)
-
Deleted my project’s bin & assets folders
-
Copied the libplugin.gameanalytics.so file into my project’s libs folder
-
Compiled
Calling the plugin in my code like so:
GA = require "plugin.gameanalytics" GA.init ( { game\_key = 'realdetails', secret\_key = 'realdetails', build\_name = "0.1", } )
Which executes and gives this error:
V/Corona ( 8370): \> Class.forName: plugin.gameanalytics.LuaLoader V/Corona ( 8370): WARNING: Could not load 'LuaLoader' W/System.err( 8370): java.lang.ClassNotFoundException: plugin.gameanalytics.LuaLoader W/System.err( 8370): at java.lang.Class.classForName(Native Method) W/System.err( 8370): at java.lang.Class.forName(Class.java:204) W/System.err( 8370): at java.lang.Class.forName(Class.java:169) W/System.err( 8370): at com.ansca.corona.NativeToJavaBridge.callLoadClass(NativeToJavaBridge.java:375) W/System.err( 8370): at com.naef.jnlua.LuaState.lua\_pcall(Native Method) W/System.err( 8370): at com.naef.jnlua.LuaState.call(Unknown Source) W/System.err( 8370): at com.ansca.corona.CoronaLua.dispatchEvent(CoronaLua.java:98) W/System.err( 8370): at network.NetworkRequest$LuaCallback$1.executeUsing(NetworkRequest.java:598) W/System.err( 8370): at com.ansca.corona.CoronaRuntimeTaskDispatcher$TaskEvent.Send(CoronaRuntimeTaskDispatcher.java:153) W/System.err( 8370): at com.ansca.corona.events.EventManager.sendEvents(EventManager.java:229) W/System.err( 8370): at com.ansca.corona.Controller.updateRuntimeState(Controller.java:222) W/System.err( 8370): at com.ansca.corona.graphics.opengl.CoronaGLSurfaceView$CoronaRenderer.onDrawFrame(CoronaGLSurfaceView.java:402) W/System.err( 8370): at com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1622) W/System.err( 8370): at com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1377) W/System.err( 8370): Caused by: java.lang.NoClassDefFoundError: plugin/gameanalytics/LuaLoader W/System.err( 8370): ... 14 more W/System.err( 8370): Caused by: java.lang.ClassNotFoundException: Didn't find class "plugin.gameanalytics.LuaLoader" on path: /data/app/xxxxx.apk W/System.err( 8370): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65) W/System.err( 8370): at java.lang.ClassLoader.loadClass(ClassLoader.java:501) W/System.err( 8370): at java.lang.ClassLoader.loadClass(ClassLoader.java:461) W/System.err( 8370): ... 14 more W/System.err( 8370): com.naef.jnlua.LuaRuntimeException: module 'plugin.gameanalytics' not found:resource (plugin.gameanalytics.lu) does not exist in archive W/System.err( 8370): no field package.preload['plugin.gameanalytics'] W/System.err( 8370): no file '(null)/plugin.gameanalytics.lua' W/System.err( 8370): no file '(null)/plugin.gameanalytics.lua' W/System.err( 8370): no file '/data/app-lib/xxxxxxx/libplugin.gameanalytics.so' W/System.err( 8370): no file './plugin.gameanalytics.so' W/System.err( 8370): no file '(null)/plugin.gameanalytics.so' W/System.err( 8370): no file '/data/app-lib/xxxxxxx/libplugin.so' W/System.err( 8370): no file './plugin.so' W/System.err( 8370): no file '(null)/plugin.so' W/System.err( 8370): at com.naef.jnlua.LuaState.lua\_pcall(Native Method) W/System.err( 8370): at com.naef.jnlua.LuaState.call(Unknown Source) W/System.err( 8370): at com.ansca.corona.CoronaLua.dispatchEvent(CoronaLua.java:98) W/System.err( 8370): at network.NetworkRequest$LuaCallback$1.executeUsing(NetworkRequest.java:598) W/System.err( 8370): at com.ansca.corona.CoronaRuntimeTaskDispatcher$TaskEvent.Send(CoronaRuntimeTaskDispatcher.java:153) W/System.err( 8370): at com.ansca.corona.events.EventManager.sendEvents(EventManager.java:229) W/System.err( 8370): at com.ansca.corona.Controller.updateRuntimeState(Controller.java:222) W/System.err( 8370): at com.ansca.corona.graphics.opengl.CoronaGLSurfaceView$CoronaRenderer.onDrawFrame(CoronaGLSurfaceView.java:402) W/System.err( 8370): at com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1622) W/System.err( 8370): at com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1377)
Has someone successfully added this feature? Can someone point me in the right direction if I am missing steps?