Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Amazon Gamecircle throwing a Google gameNetwork Error
Started by dzy969 Oct 27 2015 12:04 PM

2 replies to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

dzy969

[GLOBAL: userInfoPane.html]
dzy969
  • Observer

  • 13 posts
  • Corona SDK

Hi,

When I submit my apk to Amazon it throws an error as shown on the screenshot below.

 

5.jpg

/Users/jenkins/slaveroot/workspace/Templates/label/android/librtt/Corona/CoronaLibrary.lua:102: ERROR: Could not load provider (google) due to the following reason: /Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lua:835: module 'CoronaProvider.gameNetwork.google' not found:resource (CoronaProvider.gameNetwork.google.lu) does not exist in archive
    no field package.preload['CoronaProvider.gameNetwork.google']
    no file '(null)/CoronaProvider/gameNetwork/google.lua'
    no file '(null)/CoronaProvider/gameNetwork/google.lua'
    no file '/data/app/com.silkyoceanstudios.junglelander-1/lib/arm/libCoronaProvider/gameNetwork/google.so'
    no file './CoronaProvider/gameNetwork/google.so'
    no file '(null)/CoronaProvider/gameNetwork/google.so'
    no file '/data/app/com.silkyoceanstudios.junglelander-1/lib/arm/libCoronaProvider.so'
    no file './CoronaProvider.so'
    no file '(null)/CoronaProvider.so'
    no file '/data/app/com.silkyoceanstudios.junglelander-1/lib/arm/libCoronaProvider.gameNetwork.google.so'
    no file './CoronaProvider.gameNetwork.google.so'
    no file '(null)/CoronaProvider.gameNetwork.google.so'.
stack traceback:
    [C]: in function 'assert'
    /Users/jenkins/slaveroot/workspace/Templates/label/android/librtt/Corona/CoronaLibrary.lua:102: in function 'requireProvider'
    /Users/jenkins/slaveroot/workspace/Templates/label/android/librtt/Corona/CoronaLibrary.lua:127: in function 'setCurrentProvider'
    ?: in function 'init'
    ?: in function '?'
    ?: in function 'init'
    ?: in function 'func'
    /Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lua:241: in function </Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lua:221>

I get this error using the Amazon App Testing Service and if I upload the app to them and test it on a real device.  From the App Testing service it happens on all devices

 

Everything works ok on iOS and Google Play.

 

Its odd as it seems to be trying to load a gameNetwork file.

 

Any ideas?



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,680 posts
  • Enterprise

Can you post your build.settings file?

When you build are you building for Google or Amazon?

Is your code properly detecting Amazon and not trying to load Google Play Game Services?



[TOPIC: post.html]
#3

dzy969

[GLOBAL: userInfoPane.html]
dzy969
  • Observer

  • 13 posts
  • Corona SDK

Hi Rob,

Here are build settings

 

-- Supported values for orientation:
-- portrait, portraitUpsideDown, landscapeLeft, landscapeRight
 
settings = {
 
orientation = {
default = "landscapeRight",
supported = { "landscapeRight" , "landscapeLeft" }
},
 
     plugins =
    {
        ["plugin.gameanalytics"] =
        {
            publisherId = "com.gameanalytics",
        },
        ["plugin.advertisingId"] =
        {
            publisherId = "com.coronalabs",
        },
        ["plugin.chartboost"] =
        {
            -- required
            publisherId = "com.swipeware"
        },
        ["CoronaProvider.gameNetwork.google"] =
        {
            publisherId = "com.coronalabs",
            supportedPlatforms = { android=true },
        },
        ["CoronaProvider.gameNetwork.apple"] =
        {
            publisherId = "com.coronalabs",
            supportedPlatforms = { iphone=true, ["iphone-sim"]=true },
        },
        ["plugin.gamecircle"] =
        {
            -- required
            publisherId = "COM_INNOVATIVELEISURE",
            supportedPlatforms = { ["android-kindle"] = true },
        },
    },
        
    android =
    {
        googlePlayGamesAppId = "1111111111", --removed for this post
        versionCode = "115",
        allowAppsReadOnlyAccessToFiles = false,
        usesPermissions =
        {
            "android.permission.INTERNET",
            "android.permission.WRITE_EXTERNAL_STORAGE",
            "android.permission.VIBRATE",
        },
    },
        
        
iphone = {
plist = {
            CFBundleIconFiles = {
                "Icon.png",
                "Icon@2x.png",
                "Icon-60.png",
                "Icon-60@2x.png",
                "Icon-60@3x.png",
                "Icon-72.png",
                "Icon-72@2x.png",
                "Icon-76.png",
                "Icon-76@2x.png",
                "Icon-Small-40.png",
                "Icon-Small-40@2x.png",
                "Icon-Small-40@3x.png",
                "Icon-Small-50.png",
                "Icon-Small-50@2x.png",
                "Icon-Small.png",
                "Icon-Small@2x.png"
            },
            UILaunchImages = {
            },
 
UIStatusBarHidden = false,
UIPrerenderedIcon = true, -- set to false for "shine" overlay
--UIApplicationExitsOnSuspend = true, -- uncomment to quit app on suspend
 
            --[[
            -- iOS app URL schemes:
            CFBundleURLTypes =
            {
                {
                    CFBundleURLSchemes =
                    {
                        "fbXXXXXXXXXXXXXX", -- example scheme for facebook
                        "coronasdkapp", -- example second scheme
                    }
                }
            }
            --]]
}
},
}
 

 

I've targeted Amazon for the build ok.

 

How much of gameNetwork do I need to exclude in my code. e.g. do I need an if around the 'require' on each page.

 

Are there any examples of combining the GameCircle and GameNetwork plugins in one file?

 

Thanks 




[topic_controls]
[/topic_controls]