Add install apk failed reason

master
Zhuang Ma 7 years ago
parent baa26670ba
commit 189d5170a7
  1. 1
      README.en.md
  2. 3
      README.md

@ -577,6 +577,7 @@ Common Installation failed output code, the meaning and possible solutions are a
| INSTALL\_FAILED\_NO\_MATCHING\_ABIS | applications include device application binary interface does not support the native code | | | INSTALL\_FAILED\_NO\_MATCHING\_ABIS | applications include device application binary interface does not support the native code | |
| INSTALL\_CANCELED\_BY\_USER | applications installed on the device needs confirmation, but not operate the device or the point of cancellation | agree to install on the device | | INSTALL\_CANCELED\_BY\_USER | applications installed on the device needs confirmation, but not operate the device or the point of cancellation | agree to install on the device |
| INSTALL\_FAILED\_ACWF\_INCOMPATIBLE | applications are not compatible with the device | | | INSTALL\_FAILED\_ACWF\_INCOMPATIBLE | applications are not compatible with the device | |
| INSTALL_FAILED_TEST_ONLY | APK file is build via Android Studio 'RUN' | Rebuild via Gradle assembleDebug or assembleRelease, or Generate Signed APK |
| Does not contain AndroidManifest.xml | invalid APK file | | | Does not contain AndroidManifest.xml | invalid APK file | |
| Is not a valid zip file | invalid APK file | | | Is not a valid zip file | invalid APK file | |
| Offline | device is not connected successfully | first device with adb successful connection | | Offline | device is not connected successfully | first device with adb successful connection |

@ -545,7 +545,7 @@ Failure [INSTALL_FAILED_ALREADY_EXISTS]
常见安装失败输出代码、含义及可能的解决办法如下: 常见安装失败输出代码、含义及可能的解决办法如下:
| 输出 | 含义 | 解决办法 | | 输出 | 含义 | 解决办法 |
|---------------------------------------------------------------------|--------------------------------------------------------------------------|--------------------------------------------------------------------------------| |---------------------------------------------------------------------|--------------------------------------------------------------------------|------------------------------------------------------------------------------------|
| INSTALL\_FAILED\_ALREADY\_EXISTS | 应用已经存在,或卸载了但没卸载干净 | `adb install` 时使用 `-r` 参数,或者先 `adb uninstall <packagename>` 再安装 | | INSTALL\_FAILED\_ALREADY\_EXISTS | 应用已经存在,或卸载了但没卸载干净 | `adb install` 时使用 `-r` 参数,或者先 `adb uninstall <packagename>` 再安装 |
| INSTALL\_FAILED\_INVALID\_APK | 无效的 APK 文件 | | | INSTALL\_FAILED\_INVALID\_APK | 无效的 APK 文件 | |
| INSTALL\_FAILED\_INVALID\_URI | 无效的 APK 文件名 | 确保 APK 文件名里无中文 | | INSTALL\_FAILED\_INVALID\_URI | 无效的 APK 文件名 | 确保 APK 文件名里无中文 |
@ -588,6 +588,7 @@ Failure [INSTALL_FAILED_ALREADY_EXISTS]
| INSTALL\_FAILED\_NO\_MATCHING\_ABIS | 应用包含设备的应用程序二进制接口不支持的 native code | | | INSTALL\_FAILED\_NO\_MATCHING\_ABIS | 应用包含设备的应用程序二进制接口不支持的 native code | |
| INSTALL\_CANCELED\_BY\_USER | 应用安装需要在设备上确认,但未操作设备或点了取消 | 在设备上同意安装 | | INSTALL\_CANCELED\_BY\_USER | 应用安装需要在设备上确认,但未操作设备或点了取消 | 在设备上同意安装 |
| INSTALL\_FAILED\_ACWF\_INCOMPATIBLE | 应用程序与设备不兼容 | | | INSTALL\_FAILED\_ACWF\_INCOMPATIBLE | 应用程序与设备不兼容 | |
| INSTALL_FAILED_TEST_ONLY | APK 文件是使用 Android Studio 直接 RUN 编译出来的文件 | 通过 Gradle 的 assembleDebug 或 assembleRelease 重新编译,或者 Generate Signed APK |
| does not contain AndroidManifest.xml | 无效的 APK 文件 | | | does not contain AndroidManifest.xml | 无效的 APK 文件 | |
| is not a valid zip file | 无效的 APK 文件 | | | is not a valid zip file | 无效的 APK 文件 | |
| Offline | 设备未连接成功 | 先将设备与 adb 连接成功 | | Offline | 设备未连接成功 | 先将设备与 adb 连接成功 |

Loading…
Cancel
Save