{"action":"created","issue":{"url":"https://api.github.com/repos/Triple-T/gradle-play-publisher/issues/141","repository_url":"https://api.github.com/repos/Triple-T/gradle-play-publisher","labels_url":"https://api.github.com/repos/Triple-T/gradle-play-publisher/issues/141/labels{/name}","comments_url":"https://api.github.com/repos/Triple-T/gradle-play-publisher/issues/141/comments","events_url":"https://api.github.com/repos/Triple-T/gradle-play-publisher/issues/141/events","html_url":"https://github.com/Triple-T/gradle-play-publisher/issues/141","id":150690665,"number":141,"title":"Error reading credentials from stream","user":{"login":"siloebb","id":5496305,"avatar_url":"https://avatars.githubusercontent.com/u/5496305?v=3","gravatar_id":"","url":"https://api.github.com/users/siloebb","html_url":"https://github.com/siloebb","followers_url":"https://api.github.com/users/siloebb/followers","following_url":"https://api.github.com/users/siloebb/following{/other_user}","gists_url":"https://api.github.com/users/siloebb/gists{/gist_id}","starred_url":"https://api.github.com/users/siloebb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siloebb/subscriptions","organizations_url":"https://api.github.com/users/siloebb/orgs","repos_url":"https://api.github.com/users/siloebb/repos","events_url":"https://api.github.com/users/siloebb/events{/privacy}","received_events_url":"https://api.github.com/users/siloebb/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-24T18:59:50Z","updated_at":"2016-05-02T20:34:38Z","closed_at":"2016-05-02T20:34:38Z","body":"Hi!\r\n\r\nI'm having this error:\r\n\r\n>  java.io.IOException: Error reading credentials from stream, 'type' field not specified.\r\n> \r\n> I do everything, but I can't understand why.\r\n> I'm trying publish my apk using flavors, using this command:\r\n> \r\n> > publishApkApp2salesRelease\r\n> \r\n> the complete error log:\r\n> \r\n> > * Exception is:\r\n> org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:publishApkApp2salesRelease'.\r\n>         at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)\r\n>         at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)\r\n>         at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)\r\n>         at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)\r\n>         at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)\r\n>         at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:52)\r\n>         at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)\r\n>         at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)\r\n>         at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)\r\n>         at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:203)\r\n>         at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:185)\r\n>         at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:66)\r\n>         at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:50)\r\n>         at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:25)\r\n>         at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:110)\r\n>         at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37)\r\n>         at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)\r\n>         at org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:23)\r\n>         at org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:43)\r\n>         at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)\r\n>         at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)\r\n>         at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:30)\r\n>         at org.gradle.initialization.DefaultGradleLauncher$4.run(DefaultGradleLauncher.java:154)\r\n>         at org.gradle.internal.Factories$1.create(Factories.java:22)\r\n>         at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)\r\n>         at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:52)\r\n>         at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:151)\r\n>         at org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:32)\r\n>         at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:99)\r\n>         at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:93)\r\n>         at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)\r\n>         at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:62)\r\n>         at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:93)\r\n>         at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:82)\r\n>         at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:94)\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:43)\r\n>         at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:28)\r\n>         at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:78)\r\n>         at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:48)\r\n>         at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:51)\r\n>         at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:28)\r\n>         at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:43)\r\n>         at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:170)\r\n>         at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:237)\r\n>         at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:210)\r\n>         at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)\r\n>         at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)\r\n>         at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206)\r\n>         at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)\r\n>         at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)\r\n>         at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)\r\n>         at org.gradle.launcher.Main.doAction(Main.java:33)\r\n>         at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)\r\n>         at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54)\r\n>         at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35)\r\n>         at org.gradle.launcher.GradleMain.main(GradleMain.java:23)\r\n>         at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:33)\r\n>         at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:130)\r\n>         at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:48)\r\n> Caused by: org.gradle.api.UncheckedIOException: java.io.IOException: Error reading credentials from stream, 'type' field not specified.\r\n>         at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:43)\r\n>         at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:78)\r\n>         at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:227)\r\n>         at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:220)\r\n>         at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:209)\r\n>         at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:585)\r\n>         at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:568)\r\n>         at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)\r\n>         at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)\r\n>         ... 60 more\r\n> Caused by: java.io.IOException: Error reading credentials from stream, 'type' field not specified.\r\n>         at com.google.api.client.googleapis.auth.oauth2.GoogleCredential.fromStream(GoogleCredential.java:254)\r\n>         at com.google.api.client.googleapis.auth.oauth2.GoogleCredential$fromStream.call(Unknown Source)\r\n>         at de.triplet.gradle.play.AndroidPublisherHelper.authorizeWithServiceAccount(AndroidPublisherHelper.groovy:88)\r\n>         at de.triplet.gradle.play.AndroidPublisherHelper.authorizeWithServiceAccount(AndroidPublisherHelper.groovy:65)\r\n>         at de.triplet.gradle.play.AndroidPublisherHelper.init(AndroidPublisherHelper.groovy:107)\r\n>         at de.triplet.gradle.play.PlayPublishTask.publish(PlayPublishTask.groovy:26)\r\n>         at de.triplet.gradle.play.PlayPublishApkTask.super$4$publish(PlayPublishApkTask.groovy)\r\n>         at de.triplet.gradle.play.PlayPublishApkTask.publishApk(PlayPublishApkTask.groovy:19)\r\n>         at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)\r\n>         ... 67 more\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Triple-T/gradle-play-publisher/issues/comments/216355158","html_url":"https://github.com/Triple-T/gradle-play-publisher/issues/141#issuecomment-216355158","issue_url":"https://api.github.com/repos/Triple-T/gradle-play-publisher/issues/141","id":216355158,"user":{"login":"siloebb","id":5496305,"avatar_url":"https://avatars.githubusercontent.com/u/5496305?v=3","gravatar_id":"","url":"https://api.github.com/users/siloebb","html_url":"https://github.com/siloebb","followers_url":"https://api.github.com/users/siloebb/followers","following_url":"https://api.github.com/users/siloebb/following{/other_user}","gists_url":"https://api.github.com/users/siloebb/gists{/gist_id}","starred_url":"https://api.github.com/users/siloebb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siloebb/subscriptions","organizations_url":"https://api.github.com/users/siloebb/orgs","repos_url":"https://api.github.com/users/siloebb/repos","events_url":"https://api.github.com/users/siloebb/events{/privacy}","received_events_url":"https://api.github.com/users/siloebb/received_events","type":"User","site_admin":false},"created_at":"2016-05-02T20:34:38Z","updated_at":"2016-05-02T20:34:38Z","body":"Thank you man, this resolved my problem."}}