单击New Robotium Test按钮后,Robotium录制失败

时间:2017-09-26 11:35:59

标签: android-studio robotium-recorder

我在Android studio中安装了Robotium录像机插件,并尝试通过单击New Robotium Test按钮录制一些步骤。根据步骤,我已将APK包含在文件路径目标中。当我点击新的Robotium测试时,APK会在模拟器上正确安装,但它会显示以下消息:

Recording failed. Please see output C:\Users\admins\Robotium_log.txt

以下是Robotium_log.txt的文字文件。当我打开它时,显示如下所示的文本:

  

输入:

     

E:\ Jink \ jink-mvp-android \ gradlew.bat -Dorg.gradle.daemon = true   assembleDebugAndroidTest -u -b   E:\ Jink \ jink-mvp-android \ executorproject \ build.gradle

     

输出:

     

无法通知ProjectEvaluationListener.afterEvaluate(),但是   主要配置失败优先。   java.lang.RuntimeException:找不到SDK位置。定义位置   使用local.properties文件中的sdk.dir或ANDROID_HOME   环境变量。在   com.android.build.gradle.internal.SdkHandler.getAndCheckSdkFolder(SdkHandler.java:140)     在   com.android.build.gradle.internal.SdkHandler.getSdkLoader(SdkHandler.java:150)     在   com.android.build.gradle.internal.SdkHandler.initTarget(SdkHandler.java:118)     在   com.android.build.gradle.BasePlugin.ensureTargetSetup(BasePlugin.java:684)     在   com.android.build.gradle.BasePlugin.createAndroidTasks(BasePlugin.java:621)     在com.android.build.gradle.BasePlugin $ 10 $ 1.call(BasePlugin.java:571)     在com.android.build.gradle.BasePlugin $ 10 $ 1.call(BasePlugin.java:568)     在   com.android.builder.profile.ThreadRecorder $ 1.record(ThreadRecorder.java:55)     在   com.android.builder.profile.ThreadRecorder $ 1.record(ThreadRecorder.java:47)     在   com.android.build.gradle.BasePlugin $ 10.execute(BasePlugin.java:567)     在   com.android.build.gradle.BasePlugin $ 10.execute(BasePlugin.java:564)     在   org.gradle.internal.event.BroadcastDispatch $ ActionInvocationHandler.dispatch(BroadcastDispatch.java:93)     在   org.gradle.internal.event.BroadcastDispatch $ ActionInvocationHandler.dispatch(BroadcastDispatch.java:82)     在   org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:44)     在   org.gradle.internal.event.BroadcastDispatch.dispatch(BroadcastDispatch.java:79)     在   org.gradle.internal.event.BroadcastDispatch.dispatch(BroadcastDispatch.java:30)     在   org.gradle.internal.dispatch.ProxyDispatchAdapter $ DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)     在com.sun.proxy。$ Proxy16.afterEvaluate(未知来源)at   org.gradle.configuration.project.LifecycleProjectEvaluator.notifyAfterEvaluate(LifecycleProjectEvaluator.java:82)     在   org.gradle.configuration.project.LifecycleProjectEvaluator.doConfigure(LifecycleProjectEvaluator.java:76)     在   org.gradle.configuration.project.LifecycleProjectEvaluator.access $ 000(LifecycleProjectEvaluator.java:33)     在   org.gradle.configuration.project.LifecycleProjectEvaluator $ 1.execute(LifecycleProjectEvaluator.java:53)     在   org.gradle.configuration.project.LifecycleProjectEvaluator $ 1.execute(LifecycleProjectEvaluator.java:50)     在   org.gradle.internal.Transformers $ 4.transform(Transformers.java:169)     在   org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106)     在   org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:61)     在   org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:50)     在   org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:628)     在   org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:129)     在   org.gradle.execution.TaskPathProjectEvaluator.configure(TaskPathProjectEvaluator.java:35)     在   org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:60)     在   org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:38)     在   org.gradle.initialization.DefaultGradleLauncher $ 1.execute(DefaultGradleLauncher.java:161)     在   org.gradle.initialization.DefaultGradleLauncher $ 1.execute(DefaultGradleLauncher.java:158)     在   org.gradle.internal.Transformers $ 4.transform(Transformers.java:169)     在   org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106)     在   org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:56)     在   org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:158)     在   org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:119)     在   org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:102)     在   org.gradle.launcher.exec.GradleBuildController.run(GradleBuildController.java:71)     在   org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)     在   org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)     在   org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:41)     在   org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26)     在   org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:75)     在   org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:49)     在   org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:44)     在   org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:29)     在   org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:67)     在   org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)     在   org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)     在   org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:47)     在   org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)     在   org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)     在   org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)     在   org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34)     在   org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)     在   org.gradle.launcher.daemon.server.exec.ForwardClientInput $ 2.call(ForwardClientInput.java:74)     在   org.gradle.launcher.daemon.server.exec.ForwardClientInput $ 2.call(ForwardClientInput.java:72)     at org.gradle.util.Swapper.swap(Swapper.java:38)BUILD FAILED at   org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72)     在   org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)   总时间:3.824秒   org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55)     在   org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)     在   org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:60)     在   org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)     在   org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)     在   org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:72)     在   org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)     在   org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)     在   org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy $ 1.run(StartBuildOrRespondWithBusy.java:50)     在   org.gradle.launcher.daemon.server.DaemonStateCoordinator $ 1.run(DaemonStateCoordinator.java:297)     在   org.gradle.internal.concurrent.ExecutorPolicy $ CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)     在   org.gradle.internal.concurrent.StoppableExecutorImpl $ 1.run(StoppableExecutorImpl.java:40)     在   java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)     在   java.util.concurrent.ThreadPoolExecutor中的$ Worker.run(ThreadPoolExecutor.java:624)     在java.lang.Thread.run(Thread.java:748)FAILURE:Build失败了   一个例外。 * Where:构建文件   ' E:\ Jink \ jink-MVP-机器人\ executorproject \的build.gradle'行:54 *   出了什么问题:评估根项目时出现问题   ' executorproject&#39 ;. >找不到SDK位置。定义位置   local.properties文件中的sdk.dir或ANDROID_HOME   环境变量。 *尝试:使用--stacktrace选项运行以获取   堆栈跟踪。使用--info或--debug选项运行以获得更多日志输出。

0 个答案:

没有答案