目的:使用ContentResolver和ContentProvider进行两个app的数据共享

问题:插入了数据但是一直出现Failed to find provider info for com.test(com.test 是provider的authorities值)

 

经过测试,发现了两个app都使用了com.example.myapplication包名,使数据共享出现了冲突

ContentProvider出现Failed to find provider info for xxx解决办法

 

 

解决办法:更改其中一个app的包名

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
  • 2021-06-07
  • 2021-06-12
  • 2021-04-18
  • 2021-08-22
  • 2021-10-18
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-25
  • 2021-05-28
  • 2021-07-12
相关资源
相似解决方案