两个错误处理:
1.android.app.ServiceConnectionLeaked: Service com.android.exchange.ExchangeService has leaked Servi...
该异常是因为android的模拟器上自带的邮件应用的问题,所以需要对模拟器进行一些设置,禁用此类无关的应用,具体操作为:“设置”---->"所有应用"---->"Exchange Services"--->“disable”(也就是要关闭邮件应用即可)
2.junittest does not specify a android.test.InstrumentationTestRunner instrumentation or does not declare uses-library android.test.runner in its AndroidManifest.xml
解决方法:在 AndroidManifest.xml文件中没有配置<uses-library android:name="android.test.runner" />(不知道为什么。。。)注意上面这句话的配置在<application></application>里面!