Failed to lunch test error when run with Appium (已解决)
[2015-08-10 15:09:07 - androidtest1] Performing android.test.InstrumentationTestRunner JUnit launch
[2015-08-10 15:09:07 - androidtest1] Automatic Target Mode: using device '192.168.56.101:5555'
[2015-08-10 15:09:07 - androidtest1] Uploading androidtest1.apk onto device '192.168.56.101:5555'
[2015-08-10 15:09:07 - androidtest1] Installing androidtest1.apk...
[2015-08-10 15:09:08 - androidtest1] Success!
[2015-08-10 15:09:08 - androidtest1] Project dependency found, installing: myandroid1
[2015-08-10 15:09:08 - myandroid1] Uploading myandroid1.apk onto device '192.168.56.101:5555'
[2015-08-10 15:09:08 - myandroid1] Installing myandroid1.apk...
[2015-08-10 15:09:09 - myandroid1] Success!
[2015-08-10 15:09:09 - androidtest1] Launching instrumentation android.test.InstrumentationTestRunner on 192.168.56.101:5555
[2015-08-10 15:09:09 - androidtest1] Failed to launch test
在用appium测试android时,建了一个android test project,运行时就出现这个错了,重新建一个java project,吧之前的工程移过来,就不会有这个错了。(猜想android test project是测试android源码的)
虽然这个问题是解决了,但是在新建的java project上run as junit test时,出现错误:
Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:637)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
这个错误比较奇怪,我同一个工程,如果放在c盘,执行时不会有这个错,然而我放到我的项目盘,如E盘,执行时就有这个错了。(我已经吧eclispe 的java编译器,java安装版都选为和机器上安装的一致了)。
如是直接弃用E盘的工程了,但是执行时新的错误来了:
java.lang.NoSuchFieldError: org/apache/http/conn/ssl/AllowAllHostnameVerifier.INSTANCE
其实错误很长,大体意思是httpclient连接出问题了。检查时发现我加载了jre的包,同时也加载了android sdk的包,如是删掉了android sdk的包,重新运行,什么错都没有了。
问题算是解决了,但解决问题的过程很艰辛,大概断断续续的花了2天左右时间,期间google,baidu了N多文章,有类似的问题,但仅能作为参考。真正要解决问题,还是得根据错误的实际情况去分析解决啊。
Failed to lunch test error when run with Appium (已解决)的更多相关文章
- Thrift报错:Error: Thrift compiler: Failed to translate files. Error: Cannot run program thrift error=2
文章目录 报错: 原因: 解决: 报错: Error: Thrift compiler: Failed to translate files. Error: Cannot run program th ...
- Android错误:can not get file data of lua/start_v2.op [LUA ERROR] [string "require "lua/start_v2””] 已解决
错误: can not get file data of lua/start_v2.op [LUA ERROR] [string "require "lua/start_v2””] ...
- Deployment failed due to an error in FastDev assembly synchronization.
在编译的时候发生Assembly synchronization error,显示信息为:Deployment failed due to an error in FastDev assembly s ...
- java: Compilation failed: internal java compiler error
IDEA 编译项目出现java: Compilation failed: internal java compiler error 原因: 项目Java版本不一致 解决办法: 点击FIle> ...
- running boot2docker -> error in run: Failed to get machine “boot2docker-vm”: machine does not exist
登陆和使用.详细请看.....https://github.com/boot2docker/boot2docker boot2docker start error in run: Failed to ...
- nginx: [error] open() "/run/nginx.pid" failed (2: No such file or directory)
当你执行sudo nginx -s reload时出现nginx: [error] open() "/run/nginx.pid" failed (2: No such file ...
- error: failed to connect to the hypervisor error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory 解决办法
服务器版本:CentOS Linux release 7.4 Linux lb 3.10.0-693.el7.x86_64 #1 SMP Tue Aug 22 21:09:27 UTC 2017 x8 ...
- Nginx pid文件找不到 nginx: [error] open() "/run/nginx/nginx.pid" failed (2: No such file or directory)
Nginx pid文件找不到 nginx: [error] open() "/run/nginx/nginx.pid" failed (2: No such file or dir ...
- cvsnt报错:Administrator: Switch to user failed due to configuration error. Contact your System Administrator
在安装CVSNT一开始用Administrator登录时总是报[login aborted]Switch to user failed due to configuration error. Cont ...
随机推荐
- 为什么hibernate需要事务?
Hibernate是对JDBC的轻量级对象封装, Hibernate本身是不具备事务处理功能的,Hibernate事务实际上是底层的JDBC事务的封装,或者是JTA事务的封装. Hibernate的J ...
- 深入js的面向对象学习篇——温故知新(一)
在学习设计模式前必须要知道和掌握的***. 为类添加新方法: Function.prototype.method = function(name,fn) { this.prototype[name] ...
- What is an eigenvector of a covariance matrix?
What is an eigenvector of a covariance matrix? One of the most intuitive explanations of eigenvector ...
- kafka.utils.Utils阅读
这个类实现了一些工具性质的方法,正如其名. 记下自己觉得有意思的方法: readFileAsString(path: String, charset: Charset = Charset.defaul ...
- Mesh Baker的基本操作与功能演示
原地址:http://www.narkii.com/club/thread-301789-1.html 如何降低游戏在系统中的消耗并带给用户最佳的体验是开发者一直追求的目标,在Unity里面对于模型与 ...
- C/C++中几种经典的垃圾回收算法
1.引用计数算法 引用计数(Reference Counting)算法是每个对象计算指向它的指针的数量,当有一个指针指向自己时计数值加1:当删除一个指向自己的指针时,计数值减1,如果计数值减为0,说明 ...
- 其实,前面倒腾那么多,只是为了想玩SPRING BOOT
嘿嘿,,曲线达到.. 看来看来很多国内的速成,都不爽. 官方教程最体贴~~~:) http://docs.spring.io/spring-boot/docs/current/reference/ht ...
- Spring mvc 模式小结
http://www.taobaotesting.com/blogs/2375 1.spring mvc简介 Spring MVC框架是一个MVC框架,通过实现Model-View-Controlle ...
- linux grep和正则表达式
虽然正则表达式经常都在用,但是很少能够静下心来仔细的总结一下.最近看了一个台湾人的网站叫做鸟哥Linux私房菜,关于正则表达式的描述挺详细的.在此,我进行一下总结,如果想仔细的学习正则表达式,请访问鸟 ...
- Spring MVC 与 web开发
转载:http://coderbee.net/index.php/java/20140719/959 项目组用了 Spring MVC 进行开发,觉得对里面的使用方式不是很满意,就想,如果是我来搭建开 ...