具体可以看: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。
设置下这个东西就行了:![](https://img-blog.csdn.net/20160420105923546?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
我没有设置android { ... defaultConfig { ... testInstrumentationRunner "com.android.test.runner.MultiDexTestRunner" } }
you can try 下