INSTRUMENTATION_STATUS: Error=Unable to find instrumentation info的一种解决方法
来源:互联网 发布:科比各项数据 编辑:程序博客网 时间:2024/06/07 04:53
问题: 用命令行执行UiatuomatorTest时报错:INSTRUMENTATION_STATUS: Error=Unable to find instrumentation info。用adb shell pm list packages -3 检测设备中已经安装的包,发现我的测试包可以被设别到;但是用adb shell pm list instrumentation 却查不到相应的测试包信息[\em]抓狂脸[\em];
解决: Instrumentation关联的是DebugAndroidTest包而不是Debug包,执行installDebugAndroidTest以后,可以查到设备中多了一个com.imobiletest.uitest.test的包,然后再次查询Instrumentation就可以看到了相应的了
不过有一点要提一下,在一个论坛里 看到有人提到这个:app的文件build.gradle中,应当有如下的一句配置,注意不要打错
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
然后我看了一下我自己的配置文件是有的,遇到该问题的同学可以先对一下自己的build.gradle文档:
阅读全文
1 0
- INSTRUMENTATION_STATUS: Error=Unable to find instrumentation info的一种解决方法
- Android Studio Unable to find instrumentation info
- Test running failed: Unable to find instrumentation info for: ComponentInfo
- Test running failed: Unable to find instrumentation info for: ComponentInfo{xxxxxxx}
- Android单元测试Unable to find instrumentation target package的问题
- Unable to find instrumentation target package的问题
- error: Unable to find vcvarsall.bat 解决方法
- Android Unable to find instrumentation target package
- unable to find vcvarsall.bat的解决方法
- 关于python下构建c模块出现error: Unable to find vcvarsall.bat问题的解决方法
- Scrapy安装出错:error: Unable to find vcvarsall.bat的解决方法
- 【已解决】Scrapy安装出错:error: Unable to find vcvarsall.bat的解决方法
- 【转】Andriod 单元测试 Test run failed:Unable to find instrumentation target package的问题
- Test run failed:Unable to find instrumentation target package
- 一种Unable to build NVIDIA kernal module的解决方法
- Unable to find explicit activity class另类的解决方法
- 关于Keil Unable to find ARM libraries...问题的解决方法
- easy_install 错误Setup script exited with error: Unable to find vcvarsall.bat解决方法
- android Calendar使用 年月日时分秒
- 垂直滚动公告栏
- caffe中MNIST数据集训练与测试LeNet
- C#基础知识-XML介绍及基本操作
- iframe刷新父页面
- INSTRUMENTATION_STATUS: Error=Unable to find instrumentation info的一种解决方法
- Linux更新python版本(2.6---2.7)
- 从零一起学react(7)---Create React App简介
- MySQL日期 字符串 时间戳互转
- printf输出格式总结
- Jmeter:实时获取图标之Download Grafana安装
- 面向对象的基本概念
- mysql 连接报错
- margin+padding实现居中