Appodeal problem with gpgs

Hello! I’m having a problem with Appodeal. Whenever I include it in build settings my Google Play Game Services stop working.

plugins =

{

[“plugin.appodeal”] =

        {

            publisherId = “com.coronalabs”,

            supportedPlatforms = { android=true }

        },

[“plugin.gpgs”] =

        {

            publisherId = “com.coronalabs”,

            supportedPlatforms = { android=true }

        },

},

Are you getting any errors in your device’s console log?  

If you need help reading your device’s console log, see: https://docs.coronalabs.com/guide/basics/debugging/index.html

Rob

The log shows only this and then the app hangs with black screen.

V/Corona ( 3874): \> Class.forName: network.LuaLoader V/Corona ( 3874): \< Class.forName: network.LuaLoader V/Corona ( 3874): Loading via reflection: network.LuaLoader I/Corona ( 3874): Platform: S40 / ARM Neon / 5.1 / Adreno (TM) 304 / OpenGL ES 3.0 V@100.0 AU@ (GIT@) / 2017.3135 / English | US | en\_US | en V/Corona ( 3874): \> Class.forName: shared.google.play.services.base.LuaLoader V/Corona ( 3874): \< Class.forName: shared.google.play.services.base.LuaLoader V/Corona ( 3874): Loading via reflection: shared.google.play.services.base.LuaLoader V/Corona ( 3874): \> Class.forName: \_CoronaSetup.LuaLoader V/Corona ( 3874): \> Class.forName: CoronaProvider.licensing.google.LuaLoader V/Corona ( 3874): \< Class.forName: CoronaProvider.licensing.google.LuaLoader V/Corona ( 3874): Loading via reflection: CoronaProvider.licensing.google.LuaLoaderV/Corona&nbsp; ( 6489): Loading via reflection: plugin.appodeal.LuaLoader

Update: When I initialize the plugin the log shows this:

V/Corona ( 6489): Loading via reflection: plugin.appodeal.LuaLoader I/Corona ( 6489): plugin.appodeal: 1.3.5 (SDK: 2.1.4) V/Corona ( 6489): \> Class.forName: CoronaProvider.licensing.google.LuaLoader V/Corona ( 6489): \< Class.forName: CoronaProvider.licensing.google.LuaLoader V/Corona ( 6489): Loading via reflection: CoronaProvider.licensing.google.LuaLoader I/Corona ( 6489): false

Update:

I found out what was wrong. Somehow this code was interfering.

function isConnected() local socket = require("socket") local test = socket.tcp() test:settimeout(1000) -- Set timeout to 1 second local testResult = test:connect("www.google.com", 80) -- Note that the test does not work if we put http:// in front if not(testResult == nil) then return false else return true end test:close() test = nil end

Removed it and everything worked as it should right away! :slight_smile:

Are you getting any errors in your device’s console log?  

If you need help reading your device’s console log, see: https://docs.coronalabs.com/guide/basics/debugging/index.html

Rob

The log shows only this and then the app hangs with black screen.

V/Corona ( 3874): \> Class.forName: network.LuaLoader V/Corona ( 3874): \< Class.forName: network.LuaLoader V/Corona ( 3874): Loading via reflection: network.LuaLoader I/Corona ( 3874): Platform: S40 / ARM Neon / 5.1 / Adreno (TM) 304 / OpenGL ES 3.0 V@100.0 AU@ (GIT@) / 2017.3135 / English | US | en\_US | en V/Corona ( 3874): \> Class.forName: shared.google.play.services.base.LuaLoader V/Corona ( 3874): \< Class.forName: shared.google.play.services.base.LuaLoader V/Corona ( 3874): Loading via reflection: shared.google.play.services.base.LuaLoader V/Corona ( 3874): \> Class.forName: \_CoronaSetup.LuaLoader V/Corona ( 3874): \> Class.forName: CoronaProvider.licensing.google.LuaLoader V/Corona ( 3874): \< Class.forName: CoronaProvider.licensing.google.LuaLoader V/Corona ( 3874): Loading via reflection: CoronaProvider.licensing.google.LuaLoaderV/Corona&nbsp; ( 6489): Loading via reflection: plugin.appodeal.LuaLoader

Update: When I initialize the plugin the log shows this:

V/Corona ( 6489): Loading via reflection: plugin.appodeal.LuaLoader I/Corona ( 6489): plugin.appodeal: 1.3.5 (SDK: 2.1.4) V/Corona ( 6489): \> Class.forName: CoronaProvider.licensing.google.LuaLoader V/Corona ( 6489): \< Class.forName: CoronaProvider.licensing.google.LuaLoader V/Corona ( 6489): Loading via reflection: CoronaProvider.licensing.google.LuaLoader I/Corona ( 6489): false

Update:

I found out what was wrong. Somehow this code was interfering.

function isConnected() local socket = require("socket") local test = socket.tcp() test:settimeout(1000) -- Set timeout to 1 second local testResult = test:connect("www.google.com", 80) -- Note that the test does not work if we put http:// in front if not(testResult == nil) then return false else return true end test:close() test = nil end

Removed it and everything worked as it should right away! :slight_smile: