robotium recorder录制robotium报错
使用robotium Record导入apk包录制脚本报错如下
错误一:
1 2 3 4 5 6 7 |
Input: D:\Tester\AndroidTest\executorproject\gradlew.bat -Dorg.gradle.daemon=true assembleDebugTest -u -b D:\Tester\AndroidTest\executorproject\build.gradle Output: Exception in thread "main" java.lang.RuntimeException: java.io.FileNotFoundException: C:\Users\mdtuser\.gradle\wrapper\dists\gradle-2.2-all\vk5dmipuddvq5mpa6rlusql2u\gradle-2.2-all.zip.lck (系统找不到指定的路径。) at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:78) at org.gradle.wrapper.Install.createDist(Install.java:47) at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129) at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:48) Caused by: java.io.FileNotFoundException: C:\Users\mdtuser\.gradle\wrapper\dists\gradle-2.2-all\vk5dmipuddvq5mpa6rlusql2u\gradle-2.2-all.zip.lck (系统找不到指定的路径。) at java.io.RandomAccessFile.open(Native Method) at java.io.RandomAccessFile.<init>(RandomAccessFile.java:238) at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:49) ... 3 more Picked up JAVA_TOOL_OPTIONS: -agentlib:jvmhook Picked up _JAVA_OPTIONS: -Xrunjvmhook -Xbootclasspath/a:"D:\Program Files\HP\Unified Functional Testing\bin\java_shared\classes";"D:\Program Files\HP\Unified Functional Testing\bin\java_shared\classes\jasmine.jar" |
不清楚什么错误,更新android studio和robotium record到最新版试试。
错误二:
1 2 3 4 5 6 7 |
Input: /Users/baidu/project/dulife/executorproject/gradlew -Dorg.gradle.daemon=true assembleDebugTest -u -b /Users/baidu/project/dulife/executorproject/build.gradle Output: Exception in thread "main" java.lang.RuntimeException: Timeout of 120000 reached waiting for exclusive access to file: /Users/baidu/.gradle/wrapper/dists/gradle-2.2-all/vk5dmipuddvq5mpa6rlusql2u/gradle-2.2-all.zip at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:61) at org.gradle.wrapper.Install.createDist(Install.java:47) at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129) at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:48) |
大概意思是获取gradle2.2版本超时了,我本地是gradle2.4版本,不知道为什么需要2.2,你将本地的项目改成gradle2.2再编译试试
修改项目gradle/gradle-wrapper.properties文件,将distributionUrl改成如下(切记为http不是https)
1 |
distributionUrl=http\://services.gradle.org/distributions/gradle-2.2-all.zip |
转载请注明:软件测试 » robotium recorder录制robotium报错
标签: robotium