Android Studio Unable to find instrumentation info

来源:互联网 发布:C语言最短路径算法 编辑:程序博客网 时间:2024/06/06 00:30

具体可以看:http://stackoverflow.com/questions/24002212/test-running-failed-unable-to-find-instrumentation-info-for-componentinfo


我遇到的情况是:使用了

multiDexEnabled true   然后报错:Test running failed: Unable to find instrumentation info for: ComponentInfo{cn.beekee.zhongtong.test/android.test.InstrumentationTestRunner}Empty test suite。
设置下这个东西就行了:
我没有设置
android {    ...    defaultConfig {        ...        testInstrumentationRunner "com.android.test.runner.MultiDexTestRunner"    }}
you can try 下

0 0
原创粉丝点击