25 reasons for the failure to install apk

name Value description
INSTALL_FAILED_ALREADY_EXISTS -1 Already installed
INSTALL_FAILED_INVALID_APK -2 APK file is invalid
INSTALL_FAILED_INVALID_URI -3 URI passed is invalid
INSTALL_FAILED_INSUFFICIENT_STORAGE -4 It does not have enough storage space to install the application
INSTALL_FAILED_DUPLICATE_PACKAGE -5 Package has been installed with the same name
INSTALL_FAILED_NO_SHARED_USER -6 Shared user request does not exist
INSTALL_FAILED_UPDATE_INCOMPATIBLE -7 Previously installed packages with the same name, but different signatures
INSTALL_FAILED_SHARED_USER_INCOMPATIBLE -8 The signature of a shared user equipment has been installed, do not have a match
INSTALL_FAILED_MISSING_SHARED_LIBRARY -9 The new packaging uses shared libraries can not be used
INSTALL_FAILED_REPLACE_COULDNT_DELETE -10 The new packaging uses a shared library can not be used
INSTALL_FAILED_DEXOPT -11 Optimize and validate its new package dex file failed because there is not enough storage space or authentication failed
INSTALL_FAILED_OLDER_SDK -12 Because the current SDK version is lower than the required packages
INSTALL_FAILED_CONFLICTING_PROVIDER -13 The new package fails because it contains provide the content has been installed in the system's equivalent authorization (Content Provider)
INSTALL_FAILED_NEWER_SDK -14 The new package fails because the current SDK version than the new
INSTALL_FAILED_TEST_ONLY -15 The new package fails because it has been specified, it is a test package
INSTALL_FAILED_CPU_ABI_INCOMPATIBLE -16 If you are installing a software package that contains native code, but none of them are compatible with the device CPU_ABI
INSTALL_FAILED_MISSING_FEATURE -17 If the new package using the feature is not available
INSTALL_FAILED_CONTAINER_ERROR -18 A security container mounting points can not be accessed external media
INSTALL_FAILED_INVALID_INSTALL_LOCATION -19 The new package can not be installed in the specified mounting position
INSTALL_FAILED_MEDIA_UNAVAILABLE -20 The new package can not be installed in the specified mounting position, because the media is not available
INSTALL_FAILED_VERIFICATION_TIMEOUT -21 The new package can not be installed because the authentication timeout
INSTALL_FAILED_VERIFICATION_FAILURE -22 The new package can not be installed because there is no successful verification
INSTALL_FAILED_PACKAGE_CHANGED -23 The caller is expected to call the packaging has changed
INSTALL_FAILED_UID_CHANGED -24 The new packet is assigned a UID different than its previous
INSTALL_FAILED_VERSION_DOWNGRADE -25 The new package has packages than is currently installed an older version of the code

Guess you like

Origin www.cnblogs.com/cwfsoft/p/11776094.html