does not specify a android.test.InstrumentationTestRunner instrumentation or does not declare uses-l
来源:互联网 发布:日亚海淘转运公司知乎 编辑:程序博客网 时间:2024/04/27 23:29
单击“Android JUnit Test”运行后会,出现如下警告:
does not specify a android.test.InstrumentationTestRunner instrumentation or does not declare uses-library android.test.runner in its AndroidManifest.xml
在网上查到是权限配置问题,需要在AndroidManifest.xml 加上2条配置信息:
<application><uses-library android:name="android.test.runner" />
</application>
<instrumentation android:name="android.test.InstrumentationTestRunner" android:targetPackage="com.example.adtest"></instrumentation>
但是在加上这两条配置信息后再次运行又出现了一条错误信息:
Warning: No instrumentation runner found for the launch, using android.test.InstrumentationTestRunner
AndroidManifest.xml
模拟器不能记住Androidmanifest的配置,在运行时需要重新设置运行配置,如下:
1.在工程名字上点击右键,选择properties
2.在Run/Debug setting中选择要运行的工程名字,点击右边的Edit,会进入下面的界面,
在 instrumentation runner后面的下拉列表中选择:android.test.InstrumentationTestRunner
3.重新运行该测试单元,则就不会出现上面的警告了
- does not specify a android.test.InstrumentationTestRunner instrumentation or does not declare uses-l
- does not specify a android.test.InstrumentationTestRunner instrumentation or does not declare uses-l
- does not specify a android.test.InstrumentationTestRunner instrumentation or does not declare uses-l
- does not specify a android.test.InstrumentationTestRunner instrumentation or does not declare
- does not specify a android.test.InstrumentationTestRunner instrumentation or does not declare
- helloWorld does not specify a android.test.InstrumentationTestRunner instrumentation or does not dec
- MyContentProvider does not specify a android.test.InstrumentationTestRunner instrumentation or does
- does not declare uses-library android.test.runner
- does not declare uses-library android.test.runner
- Android This text field does not specify an inputType or a hint 解决
- 关于Android的This text field does not specify an inputType or a hint 问题
- android 在布局文件中报错:This text field does not specify an inputType or a hint
- android学习记录(This text field does not specify an inputType or a hint)
- Android:This text field does not specify an inputType or a hint
- Android开发出现”This text field does not specify an inputType or a hint“
- 用Eclipse编译android程序时,出现警告This text field does not specify an inputType or a hint
- Android学习系列第一弹之《warning:This text field does not specify an inputType or a hint》
- This text field does not specify an inputType or a hint
- session的详细解释
- TCP/IP详解 卷1 笔记 第6章 ICMP
- Qt 在 android 下跑 注意事项
- 已知本地视频地址,得到视频时长
- jsp页面的刷新操作
- does not specify a android.test.InstrumentationTestRunner instrumentation or does not declare uses-l
- 8 除不尽的自然数
- Android 关闭多个视图Intent.FLAG_ACTIVITY_CLEAR_TOP用法
- Swift方法(Methods)
- 我的CSDN博客开张了~
- object_setClass
- IOS高级开发~Runtime(一)
- DBSCAN聚类算法原理
- struts 环境的搭建