I’m trying to implement Google Play service and it works fine if I use Corona Pro to build my apk. But when I try to build using Enteprise, the app suddenly crashed.
I tried to follow everything, match everyline in androidmanifest and include everything in the lib and res folder but it still not working.
so after going through all the logs I found these weird and error logs from my crashed app. This is the log from the app that works and built using Corona Pro :
02-04 06:34:10.658 I/Corona (15930): start google network yoh 02-04 06:34:10.658 V/Corona (15930): \> Class.forName: CoronaProvider.gameNetwork.google.LuaLoader 02-04 06:34:10.666 V/Corona (15930): \< Class.forName: CoronaProvider.gameNetwork.google.LuaLoader 02-04 06:34:10.666 V/Corona (15930): Loading via reflection: CoronaProvider.gameNetwork.google.LuaLoader 02-04 06:34:10.940 E/LockPatternKeyguardView(1713): showAlmostAtAccountLoginDialog()
And this is the log from the crashed app :
First, I noticed this log
02-04 00:07:08.752 V/Corona (9826): \> Class.forName: CoronaProvider.licensing.google.LuaLoader 02-04 00:07:08.752 V/Corona (9826): WARNING: Could not load 'LuaLoader'
and then this is the part when it tried to init google and login :
02-04 00:07:20.994 I/Corona (9826): start google network yoh 02-04 00:07:20.994 V/Corona (9826): \> Class.forName: CoronaProvider.gameNetwork.google.LuaLoader 02-04 00:07:21.080 I/dalvikvm(9826): Could not find method com.google.android.gms.games.GamesClient.loadAchievements, referenced from method CoronaProvider.gameNetwork.google.LuaLoader.request 02-04 00:07:21.080 W/dalvikvm(9826): VFY: unable to resolve virtual method 8791: Lcom/google/android/gms/games/GamesClient;.loadAchievements (Lcom/google/android/gms/games/achievement/OnAchievementsLoadedListener;)V 02-04 00:07:21.080 D/dalvikvm(9826): VFY: replacing opcode 0x6e at 0x03da 02-04 00:07:21.096 D/dalvikvm(9826): VFY: dead code 0x03dd-03de in LCoronaProvider/gameNetwork/google/LuaLoader;.request (Lcom/naef/jnlua/LuaState;)I 02-04 00:07:21.096 V/Corona (9826): \< Class.forName: CoronaProvider.gameNetwork.google.LuaLoader 02-04 00:07:21.104 V/Corona (9826): Loading via reflection: CoronaProvider.gameNetwork.google.LuaLoader 02-04 00:07:21.455 D/dalvikvm(9670): GC\_FOR\_MALLOC freed 8222 objects / 494544 bytes in 264ms 02-04 00:07:21.932 W/dalvikvm(9826): VFY: unable to resolve static field 3035 (common\_google\_play\_services\_unknown\_issue) in Lcom/google/android/gms/R$string; 02-04 00:07:21.932 D/dalvikvm(9826): VFY: replacing opcode 0x60 at 0x003f .......going like this for few lines and then ..... 02-04 00:07:22.080 D/dalvikvm(9826): VFY: dead code 0x000e-0010 in Lcom/google/android/gms/common/GooglePlayServicesUtil;.isGooglePlayServicesAvailable (Landroid/content/Context;)I 02-04 00:07:22.088 E/GooglePlayServicesUtil(9826): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
I’m not sure what to make of this… It seems I miss few libs but I can’t tell which libs to use since I thought I already use the latest and everything…
Help please? Joshua?