zoukankan      html  css  js  c++  java
  • Failure [INSTALL_FAILED_ALREADY_EXISTS]

    1、发生原因

    做unity开发的同事说apk无法安装,要我帮忙看下,然后我通过命令adb install安装apk,出现此提示

    2、解决过程

    首先想到的仍然是安装包已存在的问题,结果使用清理类软件清理后还是无效。

    然后想到的是查看命令的详解,会不会是有些參数的问题

    adb install [-l] [-r] [-d] [-s] [--algo <algorithm name> --key <hex-encoded key> --iv <hex-encoded iv>] <file>  - push this package file to the device and install it
                                     ('-l' means forward-lock the app)
                                     ('-r' means reinstall the app, keeping its data)
                                     ('-d' means allow version code downgrade)
                                     ('-s' means install on SD card instead of internal storage)
                                     ('--algo', '--key', and '--iv' mean the file is encrypted already)
    这么一看好像仅仅有加上-r參数比較靠谱,尝试下ok了。之后询问做unity开发的同事是怎么卸载的应用,说是通过长按,这一想好像是有点道理。由于之前没卸载干净,此时假设直接通过adb install命令安装,则会强制删除之前的一些数据,所以导致安装出问题。当然仅仅是个人想法,如哪位有比較靠谱的理由,还请告知,先谢谢了!

    。!

    3、小结

    遇到INSTALL_FAILED_ALREADY_EXISTS问题。直接通过adb install -r xxx.apk命令安装apk就可以。

  • 相关阅读:
    基础--补习汇编笔记--1
    SpProcPool阅读笔记--1
    一般树--common tree
    code-reading-notes--xml 解析
    code-reading-notes--libyang-1
    linux--rbtree 解惑 insert
    记录一次手动杀毒过程
    B-Tree概念
    db2 -- 存储过程01
    sql server 带输入输出参数的分页存储过程(效率最高)
  • 原文地址:https://www.cnblogs.com/gavanwanggw/p/7233795.html
Copyright © 2011-2022 走看看