{"action":"created","issue":{"url":"https://api.github.com/repos/arnesson/cordova-plugin-firebase/issues/907","repository_url":"https://api.github.com/repos/arnesson/cordova-plugin-firebase","labels_url":"https://api.github.com/repos/arnesson/cordova-plugin-firebase/issues/907/labels{/name}","comments_url":"https://api.github.com/repos/arnesson/cordova-plugin-firebase/issues/907/comments","events_url":"https://api.github.com/repos/arnesson/cordova-plugin-firebase/issues/907/events","html_url":"https://github.com/arnesson/cordova-plugin-firebase/issues/907","id":368529322,"node_id":"MDU6SXNzdWUzNjg1MjkzMjI=","number":907,"title":"Failing to build on PGB - Plugin with id 'com.google.gms.google-services' not found.","user":{"login":"slackernrrd","id":1019496,"node_id":"MDQ6VXNlcjEwMTk0OTY=","avatar_url":"https://avatars0.githubusercontent.com/u/1019496?v=4","gravatar_id":"","url":"https://api.github.com/users/slackernrrd","html_url":"https://github.com/slackernrrd","followers_url":"https://api.github.com/users/slackernrrd/followers","following_url":"https://api.github.com/users/slackernrrd/following{/other_user}","gists_url":"https://api.github.com/users/slackernrrd/gists{/gist_id}","starred_url":"https://api.github.com/users/slackernrrd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slackernrrd/subscriptions","organizations_url":"https://api.github.com/users/slackernrrd/orgs","repos_url":"https://api.github.com/users/slackernrrd/repos","events_url":"https://api.github.com/users/slackernrrd/events{/privacy}","received_events_url":"https://api.github.com/users/slackernrrd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-10-10T07:32:03Z","updated_at":"2018-10-30T08:17:02Z","closed_at":null,"author_association":"NONE","body":"I am trying to build my app on PhoneGap Build and have forked this plugin (v2.0.4) as the instructions say (I have however not edited the config files, instead I opted to remove them in my version of the plugin, and then used `<resource-file>` in my config.xml to copy them to the correct location). This seems to work fine for iOS - yay! But my Android version is refusing to build.\r\n\r\nI am getting the following error:\r\n```\r\nBUILD FAILED in 6s\r\nError: /gradlew: Command failed with exit code 1 Error output:\r\nFAILURE: Build failed with an exception.\r\n\r\n* Where:\r\nScript '/cordova-plugin-firebase/app-build.gradle' line: 27\r\n\r\n* What went wrong:\r\nA problem occurred evaluating project ':app'.\r\n> Plugin with id 'com.google.gms.google-services' not found.\r\n\r\n* Try:\r\nRun with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.\r\n\r\n* Get more help at https://help.gradle.org\r\n\r\nBUILD FAILED in 6s\r\n    at ChildProcess.whenDone (/cordova/node_modules/cordova-common/src/superspawn.js:169:23)\r\n    at emitTwo (events.js:106:13)\r\n    at ChildProcess.emit (events.js:191:7)\r\n    at maybeClose (internal/child_process.js:877:16)\r\n    at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)\r\n```\r\n\r\nI have looked at other issues where people got the same error, but all of them are closed and none of them(?) seem to be about PhoneGap Build.\r\n\r\nAs I understand it the build hook scripts add something to the project level gradle file, but hooks don't run on PhoneGap Build. Is it at all possible to build this plugin on PGB for Android at the moment?\r\n\r\nIt seems this error can also show up if you have plugins with conflicting dependencies on Google Play Services, but as far as I know no other plugins i use have a dependency on it.\r\n\r\n```\r\n    <plugin name=\"cordova-plugin-datepicker\" source=\"npm\" spec=\"^0.9.3\" />\r\n    <plugin name=\"cordova-plugin-dialogs\" source=\"npm\" spec=\"~1.3.3\" />\r\n    <plugin name=\"cordova-plugin-file\" source=\"npm\" spec=\"~4.3.3\" />\r\n    <plugin name=\"cordova-plugin-globalization\" source=\"npm\" spec=\"~1.0.7\" />\r\n    <plugin name=\"cordova-plugin-inappbrowser\" source=\"npm\" spec=\"~1.7.1\" />\r\n    <plugin name=\"cordova-plugin-network-information\" source=\"npm\" spec=\"~1.3.3\" />\r\n    <plugin name=\"cordova-plugin-whitelist\" spec=\"^1.3.3\" />\r\n    <plugin name=\"cordova-plugin-firebase\" source=\"git\" spec=\"https://bitbucket.org/xxx/custom-firebase.git#xxxxxxx\" />\r\n```\r\n\r\nI have tried adding `<plugin name=\"cordova-support-google-services\" spec=\"^1.2.1\" />` as well as `<plugin name=\"cordova-android-play-services-gradle-release\" />` and `<plugin name=\"cordova-android-firebase-gradle-release\" />` in different combinations but nothing will work.\r\n\r\nDoes anyone have a solution? Does anyone have v2.0.4 working with PGB, so I at least know if it's worth even trying to find a solution?\r\n"},"comment":{"url":"https://api.github.com/repos/arnesson/cordova-plugin-firebase/issues/comments/434209793","html_url":"https://github.com/arnesson/cordova-plugin-firebase/issues/907#issuecomment-434209793","issue_url":"https://api.github.com/repos/arnesson/cordova-plugin-firebase/issues/907","id":434209793,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNDIwOTc5Mw==","user":{"login":"slackernrrd","id":1019496,"node_id":"MDQ6VXNlcjEwMTk0OTY=","avatar_url":"https://avatars0.githubusercontent.com/u/1019496?v=4","gravatar_id":"","url":"https://api.github.com/users/slackernrrd","html_url":"https://github.com/slackernrrd","followers_url":"https://api.github.com/users/slackernrrd/followers","following_url":"https://api.github.com/users/slackernrrd/following{/other_user}","gists_url":"https://api.github.com/users/slackernrrd/gists{/gist_id}","starred_url":"https://api.github.com/users/slackernrrd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slackernrrd/subscriptions","organizations_url":"https://api.github.com/users/slackernrrd/orgs","repos_url":"https://api.github.com/users/slackernrrd/repos","events_url":"https://api.github.com/users/slackernrrd/events{/privacy}","received_events_url":"https://api.github.com/users/slackernrrd/received_events","type":"User","site_admin":false},"created_at":"2018-10-30T08:17:02Z","updated_at":"2018-10-30T08:17:02Z","author_association":"NONE","body":"@thienanle Unfortunately I didn't find a solution. I ended up abandoning Firebase in favor of Google Analytics since right now I only need the analytics part. But I would like to find a solution for the future."}}
{"actor":{"display_login":"slackernrrd"}}