I am experimenting with the NotesList sample program in the Android SDK. I've made a slight variation in the program, but when I install my edited version I keep getting the message INSTALL_FAILED_CONFLICTING_PROVIDER in the console when I try to install it when the original notes program is already on the device. What do I need to change in the Provider to make it a unique database? It works fine if I uninstall the original notes program and then install my edited version.
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
If you are using Facebook inside app check for provider tag inside
AndroidManifest
file and check yourproject Id
is correct forandroid:authorities
The authority, as listed in
android:authorities
must be unique. Quoting the documentation for this attribute:I thought uninstalling the app by dragging its icon to "Uninstall" would solve the problem, but it did not.
Here is what solved the problem:
Try again, it should work now.
Encountered this issue.
Resolved it by:
1 - open AndroidManifest.xml
2 - ctrl+f find "provider"
3 - find provider and update your root directory name there.
run project. hopefully issue will be fixed!
The same error may occur after renaming packages. Check the value in string.xml for
android:authorities
from AndroidManifest.xml.In string.xml the value should be the same as your package name, declared in manifest.
If you are using the Facebook SDK then the issue might be in the "authorities" value you provide for the Facebook provider.
REPLACE -
WITH ->
You might need to change the
defaultConfig.ApplicationId
also as suggested in other answers.