1、创建一个类继承AndroidTestCase 2、在AndroidManifest.xml中配置 转载于:https://www.cnblogs.com/kingxiaozi/p/4669689.html