ANDROID Installation error: INSTALL_FAILED_CONFLICTING_PROVIDER

Android一个调试问题

Log信息:

[2010-10-25 17:31:43 - SQLite2] Installation error: INSTALL_FAILED_CONFLICTING_PROVIDER
[2010-10-25 17:31:43 - SQLite2] Please check logcat output for more details.
[2010-10-25 17:31:44 - SQLite2] Launch canceled!

原因:

用户重复定义了Provider,产生了冲突。

错误位置:

在工程一的Androidmanifest中定义了 android:authorities="com.studio.andriod.provider.countrycode"

但是在工程二中重复定义了 android:authorities="com.studio.andriod.provider.countrycode"

分析:

android:authorities是作为Provider的唯一标识,即系统在各个AP的Androidmanifest中会查找是否有同名的定义,如果有,即会产生以上错误。

posted @ 2012-10-19 16:04  water0504  阅读(1870)  评论(0编辑  收藏  举报