您的位置:首页 > 移动开发 > Android开发

Android学习记录<三>

2015-05-03 16:05 411 查看
两个错误处理:

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>里面!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: