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中会查找是否有同名的定义,如果有,即会产生以上错误。

原文地址:https://www.cnblogs.com/xuewater/p/2731202.html