{"action":"closed","issue":{"url":"https://api.github.com/repos/driftyco/ionic-service-push-client/issues/22","labels_url":"https://api.github.com/repos/driftyco/ionic-service-push-client/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic-service-push-client/issues/22/comments","events_url":"https://api.github.com/repos/driftyco/ionic-service-push-client/issues/22/events","html_url":"https://github.com/driftyco/ionic-service-push-client/issues/22","id":100621945,"number":22,"title":"bug: PushPlugin makes Android build fail every time !","user":{"login":"mhartington","id":2835826,"avatar_url":"https://avatars.githubusercontent.com/u/2835826?v=3","gravatar_id":"","url":"https://api.github.com/users/mhartington","html_url":"https://github.com/mhartington","followers_url":"https://api.github.com/users/mhartington/followers","following_url":"https://api.github.com/users/mhartington/following{/other_user}","gists_url":"https://api.github.com/users/mhartington/gists{/gist_id}","starred_url":"https://api.github.com/users/mhartington/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhartington/subscriptions","organizations_url":"https://api.github.com/users/mhartington/orgs","repos_url":"https://api.github.com/users/mhartington/repos","events_url":"https://api.github.com/users/mhartington/events{/privacy}","received_events_url":"https://api.github.com/users/mhartington/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-12T19:54:56Z","updated_at":"2015-08-12T20:07:15Z","closed_at":"2015-08-12T20:07:15Z","body":"_From @JerryBels on August 12, 2015 15:24_\n\n**Type**: <span ionic-type>bug</span>\n\n**Platform**: <span ionic-platform>android</span> <span ionic-platform-version>5.1</span>  <span ionic-webview>webview</span>\n\n<span ionic-description>Hello,\n\nI wanted to sanitize my app with last versions of everything, so I created a new Ionic project, right after updating Ionic and Cordova CLIs. Then I encountered a big bug with the pushPlugin. Here is how to simply reproduce :\n\nOS : Windows 7 64 bits\nCordova : 5.1.1\nIonic : 1.6.4\n\n    ionic start myApp blank\n    cd myApp\n    cordova plugin add https://github.com/phonegap-build/PushPlugin.git\n    ionic platform add android\n    ionic build android\n\nNote it doesn't matter if the plugin is added before or after the platform. Build fails anyway with the following error :\n\n\tFAILURE: Build failed with an exception.\n\n\t* What went wrong:\n\tA problem occurred configuring root project 'android'.\n\t> Could not resolve all dependencies for configuration ':_debugCompile'.\n\t   > Could not find any version that matches com.android.support:support-v4:+.\n\t\t Searched in the following locations:\n\t\t\t https://repo1.maven.org/maven2/com/android/support/support-v4/maven-metadata.xml\n\t\t\t https://repo1.maven.org/maven2/com/android/support/support-v4/\n\t\t Required by:\n\t\t\t :android:unspecified\n\n\t* Try:\n\tRun with --stacktrace option to get the stack trace. Run with --info or --debug\n\toption to get more log output.\n\n\tBUILD FAILED\n\n\tTotal time: 4.364 secs\n\n\tC:\\Users\\retraite plus\\tmp\\myApp\\platforms\\android\\cordova\\node_modules\\q\\q.js:126\n\t\t\t\t\t\tthrow e;\n\t\t\t\t\t\t\t  ^\n\tError code 1 for command: cmd with args: /s /c \"\"C:\\Users\\retraite plus\\tmp\\myApp\\platforms\\android\\gradlew\" cdvBuildDebug -b \"C:\\Users\\retraite plus\\tmp\\myApp\\platforms\\android\\build.gradle\" -Dorg.gradle.daemon=true\"\n\tERROR building one of the platforms: Error: cmd: Command failed with exit code 1\n\n\tYou may not have the required environment or OS to build this project\n\tError: cmd: Command failed with exit code 1\n\t\tat ChildProcess.whenDone (C:\\Users\\retraite plus\\AppData\\Roaming\\npm\\node_modules\\cordova\\node_modules\\cordova-lib\\src\\cordova\\superspawn.js:134:23)\n\t\tat ChildProcess.emit (events.js:110:17)\n\t\tat maybeClose (child_process.js:1015:16)\n\t\tat Process.ChildProcess._handle.onexit (child_process.js:1087:5)\n\nThanks ahead for fixing this asap !</span>\n\n<span is-issue-template></span>\n\n\n_Copied from original issue: driftyco/ionic#4225_"}}