Hi guys,
So I decompiled my apk and recompile, sign, zipalign it (properly i hope). Why? Cause I like to remove things that I don’t want and had to edit the manifest.xml manually for certain purpose.
There’s one slight problem with it, after I did it, there’s a part of my code that no longer works and after I tracked it down I found this error log :
08-21 04:25:13.566 I/Corona (9907): loading XML :anim/hero/lib_hero.xml
08-21 04:25:13.793 W/System.err(9907): at com.ansca.corona.FileServices.copyFile(FileServices.java:778)
08-21 04:25:13.793 W/System.err(9907): at com.ansca.corona.FileServices.externalizeAssetFile(FileServices.java:592)
08-21 04:25:13.793 W/System.err(9907): at com.ansca.corona.FileServices.externalizeAssetFile(FileServices.java:553)
08-21 04:25:13.793 W/System.err(9907): at com.ansca.corona.NativeToJavaBridge.callExternalizeResource(NativeToJavaBridge.java:821)
08-21 04:25:13.801 W/System.err(9907): at com.ansca.corona.JavaToNativeShim.nativeRender(Native Method)
08-21 04:25:13.801 W/System.err(9907): at com.ansca.corona.JavaToNativeShim.render(JavaToNativeShim.java:138)
08-21 04:25:13.809 W/System.err(9907): at com.ansca.corona.Controller.onDrawFrame(Controller.java:231)
08-21 04:25:13.809 W/System.err(9907): at com.ansca.corona.opengl.CoronaGLSurfaceView$CoronaRenderer.onDrawFrame(CoronaGLSurfaceView.java:400)
08-21 04:25:13.809 W/System.err(9907): at com.ansca.corona.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1622)
08-21 04:25:13.816 W/System.err(9907): at com.ansca.corona.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1377)
08-21 04:25:13.816 I/Corona (9907): Try to read common resource file
08-21 04:25:13.824 I/Corona (9907): Runtime error
08-21 04:25:13.824 I/Corona (9907): bad argument #1 to ‘open’ (string expected, got nil)
These errors occur upon calling system.pathForFile for this certain file : anim/hero/lib_hero.xml. The result of that call is nill.
If I run the apk straight out of Corona build then everything’s fine.
What did I do wrong? I don’t think it’s because any of my apk edits. I tried simple decompile-recompile also causing this error.
HALP !!!
