search

Home  >  Q&A  >  body text

android - who can tell me why

同一个apk用 Android Studio build编译安装是没有问题的,但是如果我用adb install 安装的时候就会出现证书校验失败,已还原,所以不存在没删干净的问题。
INSTALL_FAILED_VERIFICATION_FAILURE
so why?

阿神阿神2772 days ago609

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 17:58:23

    Looked at the installation command printed by Android studio

    $ adb push /Users/xiangqing/Documents/work/android-sdk/demo-rel/build/outputs/apk/demo-rel-release.apk /data/local/tmp/cn.tongdun.android.demo303
    $ adb shell pm install -r "/data/local/tmp/cn.tongdun.android.demo303"
        pkg: /data/local/tmp/cn.tongdun.android.demo303
    Success

    I found that it only changed the file name of the apk, but I changed it directly to xx.xx.xx.apk locally, and then installed it with adb install, but it still failed, but according to the above process, push-》rename-》install was successful. , why?

    reply
    0
  • Cancelreply