Build Error #1 for plugin.gpgs.v2

Hey Guys,
im trying to implement the plugin.gpgs.v2 Plugin but i get an Build Error #1 in the Simulator when i try to build an apk…

Console Output:
C:\Users\Antek\AppData\Local\Temp\Corona Labs\CLtmpa15004\template\app\src\main\AndroidManifest.xml:62:20-43 Error:
20:24:38.869 Attribute meta-data#com.google.android.gms.version@value value=(4242000) from AndroidManifest.xml:62:20-43
20:24:38.869 is also present at [com.google.android.gms:play-services-basement:17.5.0] AndroidManifest.xml:25:13-66 value=(@integer/google_play_services_version).
20:24:38.869 Suggestion: add ‘tools:replace=“android:value”’ to element at AndroidManifest.xml:61:18-62:46 to override.
20:24:38.869
20:24:38.869 FAILURE: Build failed with an exception.
20:24:38.869
20:24:38.869 * What went wrong:
20:24:38.869 Execution failed for task ‘:App:processReleaseMainManifest’.
20:24:38.869 > Manifest merger failed : Attribute meta-data#com.google.android.gms.version@value value=(4242000) from AndroidManifest.xml:62:20-43
20:24:38.869 is also present at [com.google.android.gms:play-services-basement:17.5.0] AndroidManifest.xml:25:13-66 value=(@integer/google_play_services_version).
20:24:38.869 Suggestion: add ‘tools:replace=“android:value”’ to element at AndroidManifest.xml:61:18-62:46 to override.

My build.settings android:
android =

{  

    usesPermissions =

    {

        "android.permission.INTERNET",

        "android.permission.ACCESS_NETWORK_STATE",

        "android.permission.ACCESS_COARSE_LOCATION",

        "android.permission.WRITE_EXTERNAL_STORAGE",

        "com.android.vending.BILLING",

        "com.android.vending.CHECK_LICENSE",

    },

}

My build.settings plugins:
plugins =

{

    ["plugin.gpgs.v2"] =

    {

        publisherId = "com.coronalabs",

        supportedPlatforms = { android = true }

    },

    ["plugin.google.iap.billing"] =

    {

        publisherId = "com.coronalabs"

    },

    ["CoronaProvider.native.popup.social"] =

    {

        -- required

        publisherId = "com.coronalabs",

    },

    ["CoronaProvider.gameNetwork.google"] =

    {

        publisherId = "com.coronalabs",

        supportedPlatforms = { android=true },

    },

    ["CoronaProvider.gameNetwork.apple"] =

    {

        publisherId = "com.coronalabs",

        supportedPlatforms = { iphone=true, ["iphone-sim"]=true },

    },

},

Any ideas why the gpgs.v2 isnt working for me?

The key is this:

20:24:38.869 Attribute meta-data#com.google.android.gms.version@value value=(4242000) from AndroidManifest.xml:62:20-43
20:24:38.869 is also present at [com.google.android.gms:play-services-basement:17.5.0] AndroidManifest.xml:25:13-66 value=(@integer/google_play_services_version).

Notice it says that gms.version value is also present. It means you have the same tag in two places with different values. So looking at your plugins you have GameNetwork.Google and gpgsv2? What use would you have for those two plugins? Aren’t they the same functionality?

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.