{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/screenshot-tests-for-android/issues/44","repository_url":"https://api.github.com/repos/facebook/screenshot-tests-for-android","labels_url":"https://api.github.com/repos/facebook/screenshot-tests-for-android/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/facebook/screenshot-tests-for-android/issues/44/comments","events_url":"https://api.github.com/repos/facebook/screenshot-tests-for-android/issues/44/events","html_url":"https://github.com/facebook/screenshot-tests-for-android/issues/44","id":181550425,"number":44,"title":"Error \" output files to contain exactly one file, however, it contains 2 files\" when running verifyMode screenshotTests","user":{"login":"SundeepK","id":2339563,"avatar_url":"https://avatars.githubusercontent.com/u/2339563?v=3","gravatar_id":"","url":"https://api.github.com/users/SundeepK","html_url":"https://github.com/SundeepK","followers_url":"https://api.github.com/users/SundeepK/followers","following_url":"https://api.github.com/users/SundeepK/following{/other_user}","gists_url":"https://api.github.com/users/SundeepK/gists{/gist_id}","starred_url":"https://api.github.com/users/SundeepK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SundeepK/subscriptions","organizations_url":"https://api.github.com/users/SundeepK/orgs","repos_url":"https://api.github.com/users/SundeepK/repos","events_url":"https://api.github.com/users/SundeepK/events{/privacy}","received_events_url":"https://api.github.com/users/SundeepK/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-06T23:29:54Z","updated_at":"2016-10-07T11:34:08Z","closed_at":null,"body":"Hi, So I'm not sure what the problem is, but when I run `./gradlew  verifyMode screenshotTests --stacktrace` I get the below error. I'm running under ubuntu. Any idea of what the problem could be? Below is what the error is:\r\n```\r\n* What went wrong:\r\nExecution failed for task ':sample:pullScreenshots'.\r\n> Expected task ':sample:packageDebugAndroidTest' output files to contain exactly one file, however, it contains 2 files.\r\n\r\n* Try:\r\nRun with --info or --debug option to get more log output.\r\n\r\n* Exception is:\r\norg.gradle.api.tasks.TaskExecutionException: Execution failed for task ':sample:pullScreenshots'.\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:66)\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:153)\r\n        at org.gradle.internal.Factories$1.create(Factories.java:22)\r\n        at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)\r\n        at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:53)\r\n        at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:150)\r\n        at org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:32)\r\n        at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:98)\r\n        at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:92)\r\n        at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)\r\n        at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:63)\r\n        at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:92)\r\n        at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:83)\r\n        at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:99)\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:48)\r\n        at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:30)\r\n        at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:81)\r\n        at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:46)\r\n        at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:52)\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:37)\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.health.DaemonHealthTracker.execute(DaemonHealthTracker.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.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.health.HintGCAfterBuild.execute(HintGCAfterBuild.java:41)\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:237)\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\nCaused by: java.lang.IllegalStateException: Expected task ':sample:packageDebugAndroidTest' output files to contain exactly one file, however, it contains 2 files.\r\n        at org.gradle.api.internal.file.AbstractFileCollection.getSingleFile(AbstractFileCollection.java:59)\r\n        at org.gradle.api.file.FileCollection$getSingleFile.call(Unknown Source)\r\n        at com.facebook.testing.screenshot.build.ScreenshotsPlugin.getTestApkOutput(ScreenshotsPlugin.groovy:120)\r\n        at com.facebook.testing.screenshot.build.ScreenshotsPlugin$_apply_closure1_closure8.doCall(ScreenshotsPlugin.groovy:43)\r\n        at org.gradle.api.internal.ClosureBackedAction.execute(ClosureBackedAction.java:67)\r\n        at org.gradle.api.internal.file.DefaultFileOperations.exec(DefaultFileOperations.java:175)\r\n        at org.gradle.api.internal.project.AbstractProject.exec(AbstractProject.java:856)\r\n        at org.gradle.api.internal.project.AbstractProject.exec(AbstractProject.java:852)\r\n        at org.gradle.api.Project$exec$1.call(Unknown Source)\r\n        at com.facebook.testing.screenshot.build.ScreenshotsPlugin$_apply_closure1.doCall(ScreenshotsPlugin.groovy:42)\r\n        at org.gradle.api.internal.AbstractTask$ClosureTaskAction.execute(AbstractTask.java:590)\r\n        at org.gradle.api.internal.AbstractTask$ClosureTaskAction.execute(AbstractTask.java:571)\r\n        at org.gradle.api.internal.tasks.TaskMutator$1.execute(TaskMutator.java:77)\r\n        at org.gradle.api.internal.tasks.TaskMutator$1.execute(TaskMutator.java:73)\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        ... 68 more\r\n```\r\n\r\nI can share my build.gradle file if i will help. I'll test it out on a mac to see if I get the same problem. The only thing I did recently is update to latest android studios not sure how it changes things.\r\n\r\nThe actual tests themselves run correctly."},"comment":{"url":"https://api.github.com/repos/facebook/screenshot-tests-for-android/issues/comments/252228149","html_url":"https://github.com/facebook/screenshot-tests-for-android/issues/44#issuecomment-252228149","issue_url":"https://api.github.com/repos/facebook/screenshot-tests-for-android/issues/44","id":252228149,"user":{"login":"tdrhq","id":82582,"avatar_url":"https://avatars.githubusercontent.com/u/82582?v=3","gravatar_id":"","url":"https://api.github.com/users/tdrhq","html_url":"https://github.com/tdrhq","followers_url":"https://api.github.com/users/tdrhq/followers","following_url":"https://api.github.com/users/tdrhq/following{/other_user}","gists_url":"https://api.github.com/users/tdrhq/gists{/gist_id}","starred_url":"https://api.github.com/users/tdrhq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdrhq/subscriptions","organizations_url":"https://api.github.com/users/tdrhq/orgs","repos_url":"https://api.github.com/users/tdrhq/repos","events_url":"https://api.github.com/users/tdrhq/events{/privacy}","received_events_url":"https://api.github.com/users/tdrhq/received_events","type":"User","site_admin":false},"created_at":"2016-10-07T11:34:08Z","updated_at":"2016-10-07T11:34:08Z","body":"@SundeepK  upgrade your screenshot-tests plugin to 0.4.3, this is a known incompatibility with the 2.2.0 version of the android gradle plugin. Let me know if this works."}}
{"actor":{"display_login":"tdrhq"}}