Hi Rob,
I put together totally stripped down app (only main.lua, build.settings and config.lua).
I built APK using the brand new keystore that I created earlier today. But it’s giving me the exact same error. Please see main.lua, build.settings and config.lua along with the full log below.
The log shows the terminal output from the moment I launch the app and then tap on Sign In button three times.
I have no clue where things are going wrong.
Thanks again for looking at this for me.
Naomi
main.lua:
[lua]
display.setStatusBar( display.HiddenStatusBar ); --Hide status bar from the beginning
local gameNetwork = require( “gameNetwork” )
local json = require( “json” )
local widget = require( “widget” )
local function loadLocalUser( event )
print("---------- inside google loadLocalUser ----------")
if event.isError then
print("---------- login request failed ----------")
print("event.isError = " … tostring(event.isError))
native.showAlert( “Login Failed”, “Login Failed”, { “OK” } )
else
– [edit] it returns event.isError or nothing
print("---------- login successful ----------")
native.showAlert( “Login Successful”, “Login Successful!”, { “OK” } )
end
end
local function initCallback( event )
print("---------- inside google initCallback ----------")
if event.isError then
print("---------- init failed ----------")
print("event.isError = " … tostring(event.isError))
native.showAlert( “Init Failed”, “Init Failed”, { “OK” } )
else
– [edit] it returns event.isError or nothing
print("---------- starting Google login ----------")
– Tries to automatically log in the user without displaying the login screen if the user doesn’t want to login
gameNetwork.request(“login”, { userInitiated = false, listener = loadLocalUser })
end
end
print("---------- calling gameNetwork.init ----------")
gameNetwork.init( “google”, initCallback )
local function onSystemEvent( event )
if ( event.type == “applicationStart” ) then
print("------- START of applicationStart ----------")
elseif ( event.type == “applicationSuspend” ) then
elseif ( event.type == “applicationResume” ) then
print("------- START of applicationResume ----------")
end
end
Runtime:addEventListener( “system”, onSystemEvent )
local signInNow = function()
local function loadLocalUser( event )
print("---------- inside loadLocalUser ----------")
if event.isError then
print("---------- login request failed ----------")
print("event.isError = " … tostring(event.isError))
native.showAlert( “Login Failed”, “Login Failed”, { “OK” } )
else
– it returns event.isError or nothing
print("---------- login successful ----------")
native.showAlert( “Login Successful”, “Login Successful!”, { “OK” } )
end
end
local function initCallback( event )
print("---------- inside initCallback ----------")
if event.isError then
print("---------- init failed ----------")
print("event.isError = " … tostring(event.isError))
native.showAlert( “Init Failed”, “Init Failed”, { “OK” } )
else
– it returns event.isError or nothing
print("---------- starting Google login ----------")
gameNetwork.request(“login”, { userInitiated = true, listener = loadLocalUser })
end
end
print("---------- calling gameNetwork.init ----------")
gameNetwork.init( “google”, initCallback )
end
local gcSignIn = widget.newButton{
defaultFile = “btn1.png”,
overFile = “btn2.png”,
width = 190,
height = 42,
label = “SING IN”,
labelColor = { default={1.0}, over={1.0} },
fontSize = 20,
onRelease = signInNow
}
gcSignIn.x = display.contentCenterX
gcSignIn.y = display.contentCenterY
[/lua]
build.settings:
[lua]
settings = {
orientation = {
default = “landscapeRight”,
supported =
{
“landscapeRight”, “landscapeLeft”,
},
},
android =
{
googlePlayGamesAppId = “1234567890”, – Google Play Games App Id
usesPermissions =
{
– Google Play only
“com.android.vending.BILLING”,
“android.permission.GET_ACCOUNTS”,
“android.permission.RECEIVE_BOOT_COMPLETED”,
“android.permission.INTERNET”,
“android.permission.ACCESS_WIFI_STATE”,
“android.permission.ACCESS_NETWORK_STATE”,
“com.android.vending.CHECK_LICENSE”, – need this for extension file
“android.permission.WRITE_EXTERNAL_STORAGE”, – need this for Vungle ads & for extension file
},
},
plugins =
{
– GOOGLE PLAY SERVICES (required for delivering ads)
[“plugin.google.play.services”] =
{
publisherId = “com.coronalabs”, supportedPlatforms = { android = true },
},
– GOOGLE PLAY GAME SERVICES
[“CoronaProvider.gameNetwork.google”] =
{
publisherId = “com.coronalabs”, supportedPlatforms = { android = true },
},
– GOOGLE IAP V3
[“plugin.google.iap.v3”] =
{
publisherId = “com.coronalabs”, supportedPlatforms = { android = true },
},
},
}
[/lua]
config.lua (misspelling edited):
[lua]
application =
{
launchPad = false,
license = {
google = { key = “SuperDuperLoooooongTextString”,},
},
content =
{
width = 320,
height = 480,
scale = “letterbox”,
fps = 60,
imageSuffix =
{
["@2x"] = 1.5,
["@4x"] = 3.0,
},
},
}
[/lua]
-------- FULL LOG --------
I/ActivityManager( 432): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.mycompany.myapp/com.ansca.corona.CoronaActivity} from pid 677
D/dalvikvm( 432): GC_FOR_ALLOC freed 334K, 39% free 16646K/26880K, paused 68ms, total 69ms
D/dalvikvm( 432): GC_FOR_ALLOC freed 506K, 40% free 16387K/26880K, paused 60ms, total 61ms
I/ActivityManager( 432): Start proc com.mycompany.myapp for activity com.mycompany.myapp/com.ansca.corona.CoronaActivity: pid=17647 uid=10027 gids={50027, 1015, 3003, 1028}
D/dalvikvm(17647): Trying to load lib /data/app-lib/com.mycompany.myapp-1/liblua.so 0x41dca170
D/dalvikvm(17647): Added shared lib /data/app-lib/com.mycompany.myapp-1/liblua.so 0x41dca170
D/dalvikvm(17647): No JNI_OnLoad found in /data/app-lib/com.mycompany.myapp-1/liblua.so 0x41dca170, skipping init
D/dalvikvm(17647): Trying to load lib /data/app-lib/com.mycompany.myapp-1/libjnlua5.1.so 0x41dca170
D/dalvikvm(17647): Added shared lib /data/app-lib/com.mycompany.myapp-1/libjnlua5.1.so 0x41dca170
D/dalvikvm(17647): Trying to load lib /data/app-lib/com.mycompany.myapp-1/libjnlua5.1.so 0x41dca170
D/dalvikvm(17647): Shared lib ‘/data/app-lib/com.mycompany.myapp-1/libjnlua5.1.so’ already loaded in same CL 0x41dca170
I/dalvikvm(17647): threadid=1: recursive native library load attempt (/data/app-lib/com.mycompany.myapp-1/libjnlua5.1.so)
D/dalvikvm(17647): Trying to load lib /data/app-lib/com.mycompany.myapp-1/libopenal.so 0x41dca170
I/OpenAL_SLES(17647): alc_opensles_init
D/dalvikvm(17647): Added shared lib /data/app-lib/com.mycompany.myapp-1/libopenal.so 0x41dca170
D/dalvikvm(17647): Trying to load lib /data/app-lib/com.mycompany.myapp-1/libmpg123.so 0x41dca170
D/dalvikvm(17647): Added shared lib /data/app-lib/com.mycompany.myapp-1/libmpg123.so 0x41dca170
D/dalvikvm(17647): No JNI_OnLoad found in /data/app-lib/com.mycompany.myapp-1/libmpg123.so 0x41dca170, skipping init
D/dalvikvm(17647): Trying to load lib /data/app-lib/com.mycompany.myapp-1/libalmixer.so 0x41dca170
D/dalvikvm(17647): Added shared lib /data/app-lib/com.mycompany.myapp-1/libalmixer.so 0x41dca170
D/dalvikvm(17647): No JNI_OnLoad found in /data/app-lib/com.mycompany.myapp-1/libalmixer.so 0x41dca170, skipping init
D/dalvikvm(17647): Trying to load lib /data/app-lib/com.mycompany.myapp-1/libcorona.so 0x41dca170
D/dalvikvm(17647): Added shared lib /data/app-lib/com.mycompany.myapp-1/libcorona.so 0x41dca170
D/dalvikvm(17647): GC_CONCURRENT freed 187K, 4% free 7757K/8008K, paused 4ms+3ms, total 42ms
D/libEGL (17647): loaded /system/lib/egl/libEGL_tegra.so
D/libEGL (17647): loaded /system/lib/egl/libGLESv1_CM_tegra.so
D/libEGL (17647): loaded /system/lib/egl/libGLESv2_tegra.so
D/OpenGLRenderer(17647): Enabling debug mode 0
D/dalvikvm(17647): Note: class Landroid/opengl/GLWrapperBase; has 250 unimplemented (abstract) methods
V/GLSurfaceView(17647): glGetString(7937) returns NVIDIA Tegra 3;
I/ActivityManager( 432): Displayed com.mycompany.myapp/com.ansca.corona.CoronaActivity: +440ms
V/Corona (17647): > Class.forName: network.LuaLoader
V/Corona (17647): < Class.forName: network.LuaLoader
V/Corona (17647): Loading via reflection: network.LuaLoader
I/Corona (17647): Platform: Nexus 7 / ARM Neon / 4.3 / NVIDIA Tegra 3 / OpenGL ES 2.0 14.01003 / 2014.2381
V/Corona (17647): > Class.forName: CoronaProvider.licensing.google.LuaLoader
V/Corona (17647): < Class.forName: CoronaProvider.licensing.google.LuaLoader
V/Corona (17647): Loading via reflection: CoronaProvider.licensing.google.LuaLoader
I/Corona (17647): ---------- calling gameNetwork.init ----------
D/dalvikvm(17647): GC_FOR_ALLOC freed 375K, 6% free 7704K/8144K, paused 23ms, total 23ms
I/dalvikvm-heap(17647): Grow heap (frag case) to 11.489MB for 4096016-byte allocation
D/dalvikvm(17647): GC_FOR_ALLOC freed <1K, 4% free 11704K/12148K, paused 20ms, total 20ms
V/Corona (17647): > Class.forName: CoronaProvider.gameNetwork.google.LuaLoader
V/Corona (17647): < Class.forName: CoronaProvider.gameNetwork.google.LuaLoader
V/Corona (17647): Loading via reflection: CoronaProvider.gameNetwork.google.LuaLoader
D/dalvikvm(17647): GC_CONCURRENT freed 14K, 4% free 11710K/12148K, paused 4ms+2ms, total 29ms
I/Corona (17647): ------- START of applicationStart ----------
W/dalvikvm(17647): VFY: unable to resolve static field 4997 (common_google_play_services_install_title) in Lcom/google/android/gms/R$string;
D/dalvikvm(17647): VFY: replacing opcode 0x60 at 0x004b
W/dalvikvm(17647): VFY: unable to resolve static field 4993 (common_google_play_services_enable_title) in Lcom/google/android/gms/R$string;
D/dalvikvm(17647): VFY: replacing opcode 0x60 at 0x0056
W/dalvikvm(17647): VFY: unable to resolve static field 5008 (common_google_play_services_update_title) in Lcom/google/android/gms/R$string;
D/dalvikvm(17647): VFY: replacing opcode 0x60 at 0x0061
W/dalvikvm(17647): VFY: unable to resolve static field 5005 (common_google_play_services_unsupported_title) in Lcom/google/android/gms/R$string;
D/dalvikvm(17647): VFY: replacing opcode 0x60 at 0x0073
W/dalvikvm(17647): VFY: unable to resolve static field 5001 (common_google_play_services_network_error_title) in Lcom/google/android/gms/R$string;
D/dalvikvm(17647): VFY: replacing opcode 0x60 at 0x0085
W/dalvikvm(17647): VFY: unable to resolve static field 4999 (common_google_play_services_invalid_account_title) in Lcom/google/android/gms/R$string;
D/dalvikvm(17647): VFY: replacing opcode 0x60 at 0x00af
W/dalvikvm(17647): VFY: unable to resolve static field 5005 (common_google_play_services_unsupported_title) in Lcom/google/android/gms/R$string;
D/dalvikvm(17647): VFY: replacing opcode 0x60 at 0x00ce
W/dalvikvm(17647): VFY: unable to resolve static field 4994 (common_google_play_services_install_button) in Lcom/google/android/gms/R$string;
D/dalvikvm(17647): VFY: replacing opcode 0x60 at 0x000f
W/dalvikvm(17647): VFY: unable to resolve static field 4991 (common_google_play_services_enable_button) in Lcom/google/android/gms/R$string;
D/dalvikvm(17647): VFY: replacing opcode 0x60 at 0x0016
W/dalvikvm(17647): VFY: unable to resolve static field 5006 (common_google_play_services_update_button) in Lcom/google/android/gms/R$string;
D/dalvikvm(17647): VFY: replacing opcode 0x60 at 0x001d
W/dalvikvm(17647): VFY: unable to resolve static field 5002 (common_google_play_services_unknown_issue) in Lcom/google/android/gms/R$string;
D/dalvikvm(17647): VFY: replacing opcode 0x60 at 0x0007
W/dalvikvm(17647): VFY: unable to resolve static field 4996 (common_google_play_services_install_text_tablet) in Lcom/google/android/gms/R$string;
D/dalvikvm(17647): VFY: replacing opcode 0x60 at 0x0018
W/dalvikvm(17647): VFY: unable to resolve static field 4995 (common_google_play_services_install_text_phone) in Lcom/google/android/gms/R$string;
D/dalvikvm(17647): VFY: replacing opcode 0x60 at 0x0038
W/dalvikvm(17647): VFY: unable to resolve static field 4992 (common_google_play_services_enable_text) in Lcom/google/android/gms/R$string;
D/dalvikvm(17647): VFY: replacing opcode 0x60 at 0x003f
W/dalvikvm(17647): VFY: unable to resolve static field 5007 (common_google_play_services_update_text) in Lcom/google/android/gms/R$string;
D/dalvikvm(17647): VFY: replacing opcode 0x60 at 0x0046
W/dalvikvm(17647): VFY: unable to resolve static field 5004 (common_google_play_services_unsupported_text) in Lcom/google/android/gms/R$string;
D/dalvikvm(17647): VFY: replacing opcode 0x60 at 0x0066
W/dalvikvm(17647): VFY: unable to resolve static field 5000 (common_google_play_services_network_error_text) in Lcom/google/android/gms/R$string;
D/dalvikvm(17647): VFY: replacing opcode 0x60 at 0x006d
W/dalvikvm(17647): VFY: unable to resolve static field 4998 (common_google_play_services_invalid_account_text) in Lcom/google/android/gms/R$string;
D/dalvikvm(17647): VFY: replacing opcode 0x60 at 0x0074
W/dalvikvm(17647): VFY: unable to resolve static field 5003 (common_google_play_services_unsupported_date_text) in Lcom/google/android/gms/R$string;
D/dalvikvm(17647): VFY: replacing opcode 0x60 at 0x007b
W/dalvikvm(17647): VFY: unable to resolve static field 5002 (common_google_play_services_unknown_issue) in Lcom/google/android/gms/R$string;
D/dalvikvm(17647): VFY: replacing opcode 0x60 at 0x000c
E/GooglePlayServicesUtil(17647): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
I/Corona (17647): ---------- inside google initCallback ----------
I/Corona (17647): ---------- starting Google login ----------
D/BaseGameActivity(17647): onCreate: creating GamesClient
E/GooglePlayServicesUtil(17647): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
D/BaseGameActivity(17647): onConnectionFailed: result 4
D/BaseGameActivity(17647): onConnectionFailed: since user didn’t initiate sign-in, failing now.
I/Corona (17647): ---------- inside google loadLocalUser ----------
I/Corona (17647): ---------- login request failed ----------
I/Corona (17647): event.isError = true
W/InputMethodManagerService( 432): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@423d6f98 attribute=null, token = android.os.BinderProxy@4242fa80
I/Corona (17647): ---------- calling gameNetwork.init ----------
I/Corona (17647): ---------- calling gameNetwork.init ----------
I/Corona (17647): ---------- calling gameNetwork.init ----------