还未发布过话题
  • UIAutomator2.0 简介 at 2016年09月18日

    #1 楼 @carl 你好! 我这里执行命令行(terminal)gradle Cc 时 编译出错,如下(直接在 AS 运行测试工程正常):怎么解决,麻烦了
    FAILURE: Build failed with an exception.

    • What went wrong:
      A problem occurred configuring project ':app'.

      org.gradle.api.internal.tasks.DefaultTaskInputs$TaskInputUnionFileCollection cannot be cast to org.gradle.api.internal.file.collections.DefaultConfigur
      ableFileCollection

    • Try:
      Run with --info or --debug option to get more log output.

    • Exception is:
      org.gradle.api.ProjectConfigurationException: A problem occurred configuring project ':app'.
      at org.gradle.configuration.project.LifecycleProjectEvaluator.addConfigurationFailure(LifecycleProjectEvaluator.java:79)
      at org.gradle.configuration.project.LifecycleProjectEvaluator.notifyAfterEvaluate(LifecycleProjectEvaluator.java:74)
      at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:61)
      at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:573)
      at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:125)
      at org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:47)
      at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:38)
      at org.gradle.initialization.DefaultGradleLauncher$2.run(DefaultGradleLauncher.java:124)
      at org.gradle.internal.Factories$1.create(Factories.java:22)
      at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)
      at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:53)
      at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:121)
      at org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:32)
      at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:98)
      at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:92)
      at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)
      at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:63)
      at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:92)
      at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:83)
      at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:94)
      at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)
      at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
      at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:43)
      at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:28)
      at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:82)
      at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:49)
      at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:59)
      at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
      at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
      at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:49)
      at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
      at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)
      at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
      at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34)
      at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
      at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74)
      at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72)
      at org.gradle.util.Swapper.swap(Swapper.java:38)
      at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72)
      at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
      at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55)
      at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
      at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:60)
      at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
      at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
      at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:72)
      at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
      at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
      at org.gradle.launcher.daemon.server.exec.HintGCAfterBuild.execute(HintGCAfterBuild.java:44)
      at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
      at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50)
      at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:240)
      at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)
      at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)
      Caused by: java.lang.ClassCastException: org.gradle.api.internal.tasks.DefaultTaskInputs$TaskInputUnionFileCollection cannot be cast to org.gradle.api.in
      ternal.file.collections.DefaultConfigurableFileCollection
      at com.android.build.gradle.tasks.factory.UnitTestConfigAction.fixTestTaskSources(UnitTestConfigAction.java:168)
      at com.android.build.gradle.tasks.factory.UnitTestConfigAction.execute(UnitTestConfigAction.java:92)
      at com.android.build.gradle.tasks.factory.UnitTestConfigAction.execute(UnitTestConfigAction.java:49)
      at org.gradle.api.internal.tasks.DefaultTaskContainer.create(DefaultTaskContainer.java:128)
      at com.android.build.gradle.internal.TaskContainerAdaptor.create(TaskContainerAdaptor.java:59)
      at com.android.build.gradle.internal.scope.AndroidTaskRegistry.create(AndroidTaskRegistry.java:46)
      at com.android.build.gradle.internal.scope.AndroidTaskRegistry.create(AndroidTaskRegistry.java:81)
      at com.android.build.gradle.internal.TaskManager.createRunUnitTestTask(TaskManager.java:1529)
      at com.android.build.gradle.internal.TaskManager.createUnitTestVariantTasks(TaskManager.java:1276)
      at com.android.build.gradle.internal.VariantManager.createTasksForVariantData(VariantManager.java:450)
      at com.android.build.gradle.internal.VariantManager$3.call(VariantManager.java:291)
      at com.android.build.gradle.internal.VariantManager$3.call(VariantManager.java:288)
      at com.android.builder.profile.ThreadRecorder$1.record(ThreadRecorder.java:55)
      at com.android.builder.profile.ThreadRecorder$1.record(ThreadRecorder.java:47)
      at com.android.build.gradle.internal.profile.SpanRecorders.record(SpanRecorders.java:51)
      at com.android.build.gradle.internal.VariantManager.createAndroidTasks(VariantManager.java:287)
      at com.android.build.gradle.BasePlugin$12.call(BasePlugin.java:661)
      at com.android.build.gradle.BasePlugin$12.call(BasePlugin.java:658)
      at com.android.builder.profile.ThreadRecorder$1.record(ThreadRecorder.java:55)
      at com.android.builder.profile.ThreadRecorder$1.record(ThreadRecorder.java:47)
      at com.android.build.gradle.BasePlugin.createAndroidTasks(BasePlugin.java:657)
      at com.android.build.gradle.BasePlugin$10$1.call(BasePlugin.java:571)
      at com.android.build.gradle.BasePlugin$10$1.call(BasePlugin.java:568)
      at com.android.builder.profile.ThreadRecorder$1.record(ThreadRecorder.java:55)
      at com.android.builder.profile.ThreadRecorder$1.record(ThreadRecorder.java:47)
      at com.android.build.gradle.BasePlugin$10.execute(BasePlugin.java:567)
      at com.android.build.gradle.BasePlugin$10.execute(BasePlugin.java:564)
      at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:93)
      at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:82)
      at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:44)
      at org.gradle.internal.event.BroadcastDispatch.dispatch(BroadcastDispatch.java:79)
      at org.gradle.internal.event.BroadcastDispatch.dispatch(BroadcastDispatch.java:30)
      at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
      at com.sun.proxy.$Proxy13.afterEvaluate(Unknown Source)
      at org.gradle.configuration.project.LifecycleProjectEvaluator.notifyAfterEvaluate(LifecycleProjectEvaluator.java:67)
      ... 52 more

    BUILD FAILED

    Total time: 1.675 secs

  • 同学好!请教一下自建 selenium 库 结构内容是什么