There is a problem with Android installation error: install_ FAILED_ CONFLICTING_ Provider solution

There is a problem with Android installation error: install_ Failed_ CONFLICTING_ Provider solution

Installation error encountered in recent projects: install_ Failed_ CONFLICTING_ I don't know how to solve the error message of provider. Baidu found that a friend had the same problem and solved it. Record it here. Interested friends can see it,

Installation error: INSTALL_ Failed_ CONFLICTING_ PROVIDER

I actually encountered this error. After Google was harmonized. Baidu went online for a while, and the solutions are as follows:

For reference only

This is mainly because a provider with the same name already exists in the debugging environment.

The solution is to modify the in androidmanifest. XML

Just change the value of Android: authorities to something else.

2. Go back and have a look. Android: name authorities is written incorrectly in anroidmanifest.xml,

Obviously, an error occurred: install_ Failed_ UPDATE_ INCOMPATIBLE

google...

Find the reason: there is a problem, which conflicts with the previous provider.. Just modify it.

When repeatedly installing Android APK, sometimes you may encounter ADB install errors, which are as follows:

Failure[INSTALL_Failed_UPDATE_INCOMPATIBLE]

This is probably because you didn't do it thoroughly in the previous uninstall application, but simply the APK file under RM / data / APP /. A remedy is as follows:

Start the simulator and enter the menu

In this way, you can completely delete it, and then reinstall the APK

Another way is to delete the corresponding information of the application in / data / system / packages.xml, restart the simulator and install it, because after ADB install, it will be added to packages.xml

Corresponding program information.

The unloading methods are as follows:

1) Elegant: find the application -- > Application info -- > uninstall through the interface settings -- > applications -- > manage applications -- > to uninstall the application normally.

2) Delete APK directly in / data / APP directory

This method is not recommended. Only APK is deleted. If the application has other directories, such as database directory / data / xxx / databases / is not cleaned up, there are hidden dangers.

3) Hidden:

ADB uninstall package name (this is not described in ADB's help document, but can be used)

What, I don't know package name? Look at your androidmanifest.xml. A required attribute is package, which specifies package name.

Thank you for reading, hope to help you, thank you for your support to this site!

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>