{"action":"opened","issue":{"url":"https://api.github.com/repos/intercom/intercom-cordova/issues/195","repository_url":"https://api.github.com/repos/intercom/intercom-cordova","labels_url":"https://api.github.com/repos/intercom/intercom-cordova/issues/195/labels{/name}","comments_url":"https://api.github.com/repos/intercom/intercom-cordova/issues/195/comments","events_url":"https://api.github.com/repos/intercom/intercom-cordova/issues/195/events","html_url":"https://github.com/intercom/intercom-cordova/issues/195","id":250101360,"number":195,"title":"Plugin not work on Android platform","user":{"login":"sdey0081","id":22894033,"avatar_url":"https://avatars1.githubusercontent.com/u/22894033?v=4","gravatar_id":"","url":"https://api.github.com/users/sdey0081","html_url":"https://github.com/sdey0081","followers_url":"https://api.github.com/users/sdey0081/followers","following_url":"https://api.github.com/users/sdey0081/following{/other_user}","gists_url":"https://api.github.com/users/sdey0081/gists{/gist_id}","starred_url":"https://api.github.com/users/sdey0081/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdey0081/subscriptions","organizations_url":"https://api.github.com/users/sdey0081/orgs","repos_url":"https://api.github.com/users/sdey0081/repos","events_url":"https://api.github.com/users/sdey0081/events{/privacy}","received_events_url":"https://api.github.com/users/sdey0081/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-14T17:39:45Z","updated_at":"2017-08-14T17:39:45Z","closed_at":null,"body":"## Version info\r\n  - Intercom for Cordova/PhoneGap version: 3.2.2\r\n  - iOS/Android OS version:\r\n  - iOS/Android Device:\r\n\r\n## Expected behavior\r\n\r\n## Actual behavior\r\n\r\n## Steps to reproduce\r\n 1. Generate a blank Ionic project.\r\n``` \r\nionic start ionApp blank\r\n```\r\n 2. Install intercom plugin \r\n```\r\nionic cordova plugin add cordova-plugin-intercom\r\nnpm install @ionic-native/intercom\r\n```\r\n 3. Update `config.xml` (set push-type to fcm), and add `google-services.json` to the project root.\r\n```\r\n<preference name=\"intercom-app-id\" value=\"dprxnrce\" />\r\n<preference name=\"intercom-ios-api-key\" value=\"xxx\" />\r\n<preference name=\"intercom-android-api-key\" value=\"xxx\" />\r\n<preference name=\"intercom-android-push-type\" value=\"FCM\" />\r\n```\r\n 4. Build android apk.\r\n```\r\nionic cordova build  android --release --prod\r\n```\r\n\r\n## Logs\r\n```\r\n[ERROR] Cordova encountered an error.\r\n        You may get more insight by running the Cordova command above directly.\r\n[ERROR] An error occurred while running cordova build android --release (exit code 1):\r\n        (truncated) ... adleLauncher$1.execute(DefaultGradleLauncher.java:161)\r\n        at org.gradle.initialization.DefaultGradleLauncher$1.execute(DefaultGradleLauncher.java:158)\r\n        at org.gradle.internal.Transformers$4.transform(Transformers.java:169)\r\n        at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106)\r\n        at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:56)\r\n        at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:158)\r\n        at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:119)\r\n        at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:102)\r\n        at org.gradle.launcher.exec.GradleBuildController.run(GradleBuildController.java:71)\r\n        at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)\r\n        at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)\r\n        at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:41)\r\n        at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26)\r\n        at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:75)\r\n        at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:49)\r\n        at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:44)\r\n        at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:29)\r\n        at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:67)\r\n        at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)\r\n        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)\r\n        at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:47)\r\n        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)\r\n        at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)\r\n        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)\r\n        at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34)\r\n        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)\r\n        at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74)\r\n        at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72)\r\n        at org.gradle.util.Swapper.swap(Swapper.java:38)\r\n        at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72)\r\n        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)\r\n        at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55)\r\n        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)\r\n        at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:60)\r\n        at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)\r\n        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)\r\n        at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:72)\r\n        at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)\r\n        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)\r\n        at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50)\r\n        at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:297)\r\n        at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)\r\n        at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)\r\n        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\r\n        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\r\n        at java.lang.Thread.run(Thread.java:748)\r\n        FAILURE: Build failed with an exception.\r\n        * Where:\r\n        Script 'E:\\ionApp\\platforms\\android\\cordova-plugin-intercom\\starter-intercom.gradle' line: 41\r\n        * What went wrong:\r\n        A problem occurred evaluating script.\r\n        > Failed to capture snapshot of output files for task 'copyGoogleServices' property 'destinationDir' during up-to-date check.\r\n        * Try:\r\n        Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.\r\n````"}}
{"actor":{"display_login":"sdey0081"}}