Corona SDK - Google Play游戏服务在生产版本上崩溃

时间:2016-08-02 23:05:54

标签: android google-play corona google-play-games

我的排行榜等工作正常,但当我下载我的应用程序的生产版本并转到我的排行榜时,它会崩溃。

我给自己发了一份崩溃报告,我得到了这个:

java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right value.  Expected 4242000 but found 0.  You must have the following declaration within the <application> element:     <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
at com.google.android.gms.common.GooglePlayServicesUtil.n(Unknown Source)
at com.google.android.gms.common.GooglePlayServicesUtil.isGooglePlayServicesAvailable(Unknown Source)
at CoronaProvider.gameNetwork.google.GameHelper.beginUserInitiatedSignIn(GameHelper.java:348)
at CoronaProvider.gameNetwork.google.LuaLoader$3.run(LuaLoader.java:192)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

如何将其添加到Corona SDK中的build.settings中。

我的build.settings

  plugins =
    {
        ["plugin.bit"] =
        {
            publisherId = "com.coronalabs"
        },
        ["CoronaProvider.gameNetwork.apple"] =
        {
            publisherId = "com.coronalabs",
            supportedPlatforms = { iphone=true, ["iphone-sim"]=true }
        },  
        ["CoronaProvider.gameNetwork.google"] =
        {
            publisherId = "com.coronalabs",
            supportedPlatforms = { android=true }
        },              
    }, 



android =
{
    googlePlayGamesAppId = "11111",
    usesPermissions =
    {
        "android.permission.INTERNET",
    },
},

如果e.type ==“applicationStart”则     打印(“我startz !!”)

local function callback(e)
    print("init called")
end
gameNetwork.init("google", callback)    

“我启动了”正在打印,但我从未进入回调功能?这只是昨天工作!这里发生了什么!

0 个答案:

没有答案