{"_id":"590a04fbed80861900cbc7d6","__v":0,"parentDoc":null,"user":"55b2d5626862a10d00887af9","category":{"_id":"590a04f3ed80861900cbc746","__v":0,"version":"590a04f2ed80861900cbc737","project":"55b2d5baa74a380d00e290c4","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-11-01T18:22:26.112Z","from_sync":false,"order":16,"slug":"deploying-to-google-play","title":"Deploy to Google Play"},"version":{"_id":"590a04f2ed80861900cbc737","project":"55b2d5baa74a380d00e290c4","__v":4,"createdAt":"2017-05-03T16:27:30.085Z","releaseDate":"2017-05-03T16:27:30.085Z","categories":["590a04f3ed80861900cbc738","590a04f3ed80861900cbc739","590a04f3ed80861900cbc73a","590a04f3ed80861900cbc73b","590a04f3ed80861900cbc73c","590a04f3ed80861900cbc73d","590a04f3ed80861900cbc73e","590a04f3ed80861900cbc73f","590a04f3ed80861900cbc740","590a04f3ed80861900cbc741","590a04f3ed80861900cbc742","590a04f3ed80861900cbc743","590a04f3ed80861900cbc744","590a04f3ed80861900cbc745","590a04f3ed80861900cbc746","590a04f3ed80861900cbc747","590a04f3ed80861900cbc748","590a04f3ed80861900cbc749","590a04f3ed80861900cbc74a","590a04f3ed80861900cbc74b","590a04f3ed80861900cbc74c","590a04f3ed80861900cbc74d","59124949de13f61900336a7a","5914b04e7c2c552d008b7104","5914b47242c6a22300b9dc20"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"7.0.0","version":"7"},"project":"55b2d5baa74a380d00e290c4","updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-11-01T18:25:16.337Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":2,"body":"You have the ability to automatically deploy to Google Play - either per build or on a set schedule. \n[block:callout]\n{\n  \"type\": \"danger\",\n  \"title\": \"First ensure you have completed the following steps:\",\n  \"body\": \"[1. Create a private key and setup permissions from the Google Play Developer Console](doc:setting-up-the-google-play-developer-console)\\n[2. Upload Your APK Signing KeyStores](doc:managing-your-keystores)\"\n}\n[/block]\nIf you have already completed the pre-requisite steps, follow along below to automatically deploy to Google Play!\n\nNavigate to the Deployments page on buddybuild and select the **Deploy to Google Play** tab.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/7f970bb-Deployments_-_auto-deploy_to_Google_Play_-_0.png\",\n        \"Deployments - auto-deploy to Google Play - 0.png\",\n        1500,\n        400,\n        \"#ebf0f0\"\n      ]\n    }\n  ]\n}\n[/block]\nNext, select **Connect Your Account**.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/bc4d9cb-Deployments_-_auto-deploy_to_Google_Play_-_1.png\",\n        \"Deployments - auto-deploy to Google Play - 1.png\",\n        1500,\n        529,\n        \"#dfe1e1\"\n      ]\n    }\n  ]\n}\n[/block]\nAuthenticate with Google Play by clicking **select a file**, and locating the **Google Private Key (.JSON) **that you created and downloaded in the previous step.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/92781d7-Deployments_-_auto-deploy_to_Google_Play_-_2.png\",\n        \"Deployments - auto-deploy to Google Play - 2.png\",\n        3000,\n        1600,\n        \"#525e69\"\n      ]\n    }\n  ]\n}\n[/block]\nOnce connected, you now have the option of changing the next versionCode. You can also choose to leave the default value and click **Continue**.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/350f651-Deployments_-_auto-deploy_to_Google_Play_-_3.png\",\n        \"Deployments - auto-deploy to Google Play - 3.png\",\n        1500,\n        800,\n        \"#505d68\"\n      ]\n    }\n  ]\n}\n[/block]\nNext, select the track you want to deploy to, how often you want to deploy to Google Play, and from which branch and variant.\n\nOnce you're done that, select **Save Settings**.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/31f24bd-Deployments_-_auto-deploy_to_Google_Play_-_4.png\",\n        \"Deployments - auto-deploy to Google Play - 4.png\",\n        3000,\n        1600,\n        \"#515d69\"\n      ]\n    }\n  ]\n}\n[/block]\nThat's it! You're now ready to automatically deploy builds to Google Play. \n\nIf you'd prefer to [manually deploy builds to Google Play](doc:deploying-manually-to-google-play), buddybuild allows you to do that as well!\n\n##Troubleshooting Errors\nListed below are a few of the common error messages that you may encounter while attempting to setup deployments to Google Play, and how to resolve them.\n[block:callout]\n{\n  \"type\": \"danger\",\n  \"title\": \"No application was found for the given package name:\",\n  \"body\": \"The APK must be uploaded to at least once manually through the Google Play Developer Console, which creates the application inside Google Play Developer Console. \\nIf this is not done, you will get the following error message: \\\"No application was found for the given package name.\\\"\"\n}\n[/block]","excerpt":"","slug":"deploying-automatically-to-google-play","type":"basic","title":"Deploying automatically to Google Play"}

Deploying automatically to Google Play


You have the ability to automatically deploy to Google Play - either per build or on a set schedule. [block:callout] { "type": "danger", "title": "First ensure you have completed the following steps:", "body": "[1. Create a private key and setup permissions from the Google Play Developer Console](doc:setting-up-the-google-play-developer-console)\n[2. Upload Your APK Signing KeyStores](doc:managing-your-keystores)" } [/block] If you have already completed the pre-requisite steps, follow along below to automatically deploy to Google Play! Navigate to the Deployments page on buddybuild and select the **Deploy to Google Play** tab. [block:image] { "images": [ { "image": [ "https://files.readme.io/7f970bb-Deployments_-_auto-deploy_to_Google_Play_-_0.png", "Deployments - auto-deploy to Google Play - 0.png", 1500, 400, "#ebf0f0" ] } ] } [/block] Next, select **Connect Your Account**. [block:image] { "images": [ { "image": [ "https://files.readme.io/bc4d9cb-Deployments_-_auto-deploy_to_Google_Play_-_1.png", "Deployments - auto-deploy to Google Play - 1.png", 1500, 529, "#dfe1e1" ] } ] } [/block] Authenticate with Google Play by clicking **select a file**, and locating the **Google Private Key (.JSON) **that you created and downloaded in the previous step. [block:image] { "images": [ { "image": [ "https://files.readme.io/92781d7-Deployments_-_auto-deploy_to_Google_Play_-_2.png", "Deployments - auto-deploy to Google Play - 2.png", 3000, 1600, "#525e69" ] } ] } [/block] Once connected, you now have the option of changing the next versionCode. You can also choose to leave the default value and click **Continue**. [block:image] { "images": [ { "image": [ "https://files.readme.io/350f651-Deployments_-_auto-deploy_to_Google_Play_-_3.png", "Deployments - auto-deploy to Google Play - 3.png", 1500, 800, "#505d68" ] } ] } [/block] Next, select the track you want to deploy to, how often you want to deploy to Google Play, and from which branch and variant. Once you're done that, select **Save Settings**. [block:image] { "images": [ { "image": [ "https://files.readme.io/31f24bd-Deployments_-_auto-deploy_to_Google_Play_-_4.png", "Deployments - auto-deploy to Google Play - 4.png", 3000, 1600, "#515d69" ] } ] } [/block] That's it! You're now ready to automatically deploy builds to Google Play. If you'd prefer to [manually deploy builds to Google Play](doc:deploying-manually-to-google-play), buddybuild allows you to do that as well! ##Troubleshooting Errors Listed below are a few of the common error messages that you may encounter while attempting to setup deployments to Google Play, and how to resolve them. [block:callout] { "type": "danger", "title": "No application was found for the given package name:", "body": "The APK must be uploaded to at least once manually through the Google Play Developer Console, which creates the application inside Google Play Developer Console. \nIf this is not done, you will get the following error message: \"No application was found for the given package name.\"" } [/block]