Error code 256

Sorry for not using pastebin. It doesn’t work for me right now.

This is the error I get;

Jan 05 12:31:14.823 \> Task :App:generateReleaseResValues \> Task :App:generateReleaseResources Jan 05 12:31:18.224 \> Task :App:createReleaseCompatibleScreenManifests Jan 05 12:31:18.224 Jan 05 12:31:18.726 Jan 05 12:31:18.727 \> Task :App:processReleaseManifest FAILED /private/var/folders/yq/73lg97\_53tl3xk8q17zxcrx80000gn/T/CLtmp0biTdT/template/app/src/main/AndroidManifest.xml:61:20-43 Error: Attribute meta-data#com.google.android.gms.version@value value=(4242000) from AndroidManifest.xml:61:20-43 is also present at [com.google.android.gms:play-services-basement:16.2.0] AndroidManifest.xml:25:13-66 value=(@integer/google\_play\_services\_version). Jan 05 12:31:18.728 Suggestion: add 'tools:replace="android:value"' to \<meta-data\> element at AndroidManifest.xml:60:18-61:46 to override. See http://g.co/androidstudio/manifest-merger for more information about the manifest merger. Jan 05 12:31:19.022 Jan 05 12:31:19.023 \> Task :App:mergeReleaseResources Jan 05 12:31:19.023 \> Task :App:javaPreCompileRelease Jan 05 12:31:19.126 Jan 05 12:31:19.126 FAILURE: Build failed with an exception. \* What went wrong: Execution failed for task ':App:processReleaseManifest'. \> Manifest merger failed : Attribute meta-data#com.google.android.gms.version@value value=(4242000) from AndroidManifest.xml:61:20-43 is also present at [com.google.android.gms:play-services-basement:16.2.0] AndroidManifest.xml:25:13-66 value=(@integer/google\_play\_services\_version). Jan 05 12:31:19.127 Suggestion: add 'tools:replace="android:value"' to \<meta-data\> element at AndroidManifest.xml:60:18-61:46 to override. \* Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. \* Get more help at https://help.gradle.org Jan 05 12:31:19.127 BUİLD FAILED in 2m 31s 9 actionable tasks: 8 executed, 1 up-to-date Jan 05 12:31:19.996 Android build failed (256) after 156 seconds Jan 05 12:31:20.361 ERROR: Build Failed: Failed to Build Error code: 256 Jan 05 12:31:20.362

Please post your build settings. It looks like you have a plugin conflict with Google Play Services.

Here it is; 

settings = { --build = -- { -- neverStripDebugInfo = true, -- }, orientation = { default = "Portait", supported = { "Portait", "Portait" } }, splashScreen = { enable = false }, android = { useGoogleServicesJson = true, usesPermissions = { "android.permission.INTERNET", "android.permission.ACCESS\_NETWORK\_STATE", "android.permission.WRITE\_EXTERNAL\_STORAGE", "com.android.vending.BILLING", "com.android.vending.CHECK\_LICENSE", }, facebookAppId = "XXXXXXXXXX" -- Replace XXXXXXXXXX with your Facebook App ID --largeHeap = true }, plugins = { ["plugin.notifications.v2"] = { publisherId = "com.coronalabs" }, ["plugin.facebook.v4a"] = { publisherId = "com.coronalabs" }, ["plugin.playfab.client"] = { publisherId = "com.playfab" }, -- key is the name passed to Lua's 'require()' ["plugin.google.iap.v3"] = { -- required publisherId = "com.coronalabs", supportedPlatforms = { android = true }, }, -- key is the name passed to Lua's 'require()' ["CoronaProvider.native.popup.social"] = { -- required publisherId = "com.coronalabs", }, ["CoronaProvider.native.popup.activity"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, }, }, -- Google play game services ["CoronaProvider.gameNetwork.google"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true }, }, ["CoronaProvider.gameNetwork.apple"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, ["iphone-sim"]=true }, }, }, iphone = { xcassets = "Images.xcassets", plist = { UIBackgroundModes = { "remote-notification" }, FirebaseAppDelegateProxyEnabled = false, UILaunchImages = { { --iPhone 4 Portait ["UILaunchImageMinimumOSVersion"] = "7.0", ["UILaunchImageName"] = "Default", ["UILaunchImageOrientation"] = "Portrait", ["UILaunchImageSize"] = "{320, 480}" }, { --iPhone 4 LandscapeLeft ["UILaunchImageMinimumOSVersion"] = "7.0", ["UILaunchImageName"] = "Default", ["UILaunchImageOrientation"] = "LandscapeLeft", ["UILaunchImageSize"] = "{320, 480}" }, { --iPhone 4 LandscapeRight ["UILaunchImageMinimumOSVersion"] = "7.0", ["UILaunchImageName"] = "Default", ["UILaunchImageOrientation"] = "LandscapeRight", ["UILaunchImageSize"] = "{320, 480}" }, { --iPhone 5 Portait ["UILaunchImageMinimumOSVersion"] = "7.0", ["UILaunchImageName"] = "Default-568h", ["UILaunchImageOrientation"] = "Portrait", ["UILaunchImageSize"] = "{320, 568}" }, { --iPhone 5 LandscapeLeft ["UILaunchImageMinimumOSVersion"] = "7.0", ["UILaunchImageName"] = "Default-568h", ["UILaunchImageOrientation"] = "LandscapeLeft", ["UILaunchImageSize"] = "{320, 568}" }, { --iPhone 5 LandscapeRight ["UILaunchImageMinimumOSVersion"] = "7.0", ["UILaunchImageName"] = "Default-568h", ["UILaunchImageOrientation"] = "LandscapeRight", ["UILaunchImageSize"] = "{320, 568}" }, { -- iPad / iPad Retina ["UILaunchImageMinimumOSVersion"] = "7.0", ["UILaunchImageName"] = "Default-Portrait", ["UILaunchImageOrientation"] = "Portrait", ["UILaunchImageSize"] = "{768, 1024}" }, { -- iPad / iPad Retina ["UILaunchImageMinimumOSVersion"] = "7.0", ["UILaunchImageName"] = "Default-Landscape", ["UILaunchImageOrientation"] = "LandscapeLeft", ["UILaunchImageSize"] = "{768, 1024}" }, { -- iPad / iPad Retina ["UILaunchImageMinimumOSVersion"] = "7.0", ["UILaunchImageName"] = "Default-Landscape", ["UILaunchImageOrientation"] = "LandscapeRight", ["UILaunchImageSize"] = "{768, 1024}" }, { --iPhone 6 Portrait ["UILaunchImageMinimumOSVersion"] = "8.0", ["UILaunchImageName"] = "Default-667h", ["UILaunchImageOrientation"] = "Portrait", ["UILaunchImageSize"] = "{375, 667}" }, { --iPhone 6 LandscapeLeft ["UILaunchImageMinimumOSVersion"] = "8.0", ["UILaunchImageName"] = "Default-667h", ["UILaunchImageOrientation"] = "LandscapeLeft", ["UILaunchImageSize"] = "{375, 667}" }, { --iPhone 6 LandscapeRight ["UILaunchImageMinimumOSVersion"] = "8.0", ["UILaunchImageName"] = "Default-667h", ["UILaunchImageOrientation"] = "LandscapeRight", ["UILaunchImageSize"] = "{375, 667}" }, { -- iPhone 6 Plus Portrait ["UILaunchImageMinimumOSVersion"] = "8.0", ["UILaunchImageName"] = "Default-736h", ["UILaunchImageOrientation"] = "Portrait", ["UILaunchImageSize"] = "{414, 736}" }, { -- iPhone 6 Plus landscape left ["UILaunchImageMinimumOSVersion"] = "8.0", ["UILaunchImageName"] = "Default-Landscape-736h", ["UILaunchImageOrientation"] = "LandscapeLeft", ["UILaunchImageSize"] = "{414, 736}" }, { -- iPhone 6 Plus landscape right ["UILaunchImageMinimumOSVersion"] = "8.0", ["UILaunchImageName"] = "Default-Landscape-736h", ["UILaunchImageOrientation"] = "LandscapeRight", ["UILaunchImageSize"] = "{414, 736}" } }, UIApplicationExitsOnSuspend = false, FacebookAppID = "XXXXXXXXXX", -- Replace XXXXXXXXXX with your Facebook App ID CFBundleURLTypes = { { CFBundleURLSchemes = { "fbXXXXXXXXXX", } } -- Replace XXXXXXXXXX with your Facebook App ID }, -- Whitelist Facebook apps LSApplicationQueriesSchemes = { "fb", -- Needed for the facebook-v4.isFacebookAppEnabled() API "fbapi", "fbauth2", "fb-messenger-api", "fbshareextension" }, --[[UIAppFonts = { "foo.ttf", "immortal.ttf", "district.ttf", "carbontype.ttf", "Agency.ttf", "AgencyFB-Bold.ttf", }, --]] } }, excludeFiles = { iphone = { 'Icon-\*dpi.png', 'audio/\*.oog' }, android = { 'Icon.png', 'Icon-6\*.png', 'Icon-7\*.png', 'Icon-Small\*.png', 'Icon@2x.png', 'Default-568h@2x.png', 'audio/\*.m4a' } }, }

I would start by removing these one by one and see if it builds:

 ["plugin.notifications.v2"] = { publisherId = "com.coronalabs" }, ["plugin.playfab.client"] = { publisherId = "com.playfab" }, -- key is the name passed to Lua's 'require()' ["plugin.google.iap.v3"] = { -- required publisherId = "com.coronalabs", supportedPlatforms = { android = true }, }, -- Google play game services ["CoronaProvider.gameNetwork.google"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true }, },

well well… thanks a lot. it seems the error was  due to this;

["plugin.notifications.v2"] = { publisherId = "com.coronalabs" },

This plugin hasn’t worked in a long time. There is a GPGS v2 plugin that’s replaced it.

-- Google play game services ["CoronaProvider.gameNetwork.google"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true }, },

You should remove it.

Rob

Do you or anyone still have the gpgs sample anywhere? I checked https://github.com/coronalabs/gpgs-sample but it’s a 404 error page. Been years since I used google scoreboards, back when still using gamenetwork, so I need some more info on gpgs. thanks.