Home > Mobile >  App - debug apk installation failed
App - debug apk installation failed

Time:11-20

Tablet machine debugging, has always been installation commissioning the debug version before works, when reinstall today to the following questions. Please counsel.

CodePudding user response:

Only I can't see what your problem is?

CodePudding user response:

Reload the debug of the app before unloading.

CodePudding user response:

Instant check the Run out, do not use the Instant Run with respect to OK

CodePudding user response:

Instant check the Run can't be removed or the same mistake, in addition to the debug of the app before unloading the reload, this debug version has been uninstalled, before the problem is unloading caused by unclean, others said to restart the computer online this method doesn't work, I tried,

CodePudding user response:

Temporarily solved: my AndroidManifest. A line of code under the manifest node of the XML file android: sharedUserId="android) uid) system", can be installed after the delete, what about this line of code, reference other blog: ,

As to why a temporary solution: because my program to be installed again, but some problems still not completely clear: a Failure such as baidu [INSTALL_FAILED_SHARED_USER_INCOMPATIBLE] will find others solution is:
INSTALL_FAILED_UPDATE_INCOMPATIBLE
1, as there is no completely uninstall, can use the Settings in the corresponding application, or the adb uninstall com. Android. * * *

INSTALL_FAILED_SHARED_USER_INCOMPATIBLE
Is mainly due to the use of the android. Uid. Shared problems,
Solution the following
The first method is simple, but need to use the make environment in the Android source code to compile:

1. Modify Android. Mk file, join LOCAL_CERTIFICATE:
=platform this line of business2. Use the mm command to compile and generate the apk can run in the simulator,


The second method of trouble, but don't open the virtual machine to run to the source environment to compile with the make:

1. Use the eclipse to compile the apk, but this is can't use the apk,
2. Check the Android. Mk file, join LOCAL_CERTIFICATE:=this line, according to the lines, select the corresponding signature,
Platform -- -- -- -- -- & gt; Platform. Pk8 and platform. X509. Pem
Shared -- -- -- -- -- & gt; Shared. Pk8 and Shared. X509. Pem
3. Using the platform key to the target system for the apk signature, this step is troublesome,
First find the key file in my Android source directory location
Is "build/target/product/security", the platform below. Pk8 and platform x509. Pem
Two files,
Then use Android provides Signapk tools to the signature, Signapk source code is
Under the "build/tools/signapk",
Usage for "Java - jar signapk. Jar platform. X509. Pem platform. Pk8 input. The apk output. The apk",
Name of the file it is best to use absolute paths to prevent, can also modify the source code directly use,

4. Other APPS application is according to the method can run normally,

But that only generated by the program in the original Android or is only can use in their own compilation system, because such a system can get platform. Pk8 and platform. X509. Pem two files, if other companies do Android even installed is not installed, try the original Android the key signature, programs run on model is proposed to implement OK, but on the G3 installed directly prompt "Package... Has no signatures that match those in Shared user android. The uid. System ", that is to protect the security of the system, and the

The last also said, the android: sharedUserId attribute not only can put apk in the system process, also can configure multiple apk running in a process, so that we can share data, should be very useful,
I haven't get through these, also in the study,

CodePudding user response:

This simple, the version number plus one

CodePudding user response:

Change - r - t
  • Related