【问题标题】:Using adb, I get an error while trying to install an apk to my Android device使用 adb,尝试将 apk 安装到我的 Android 设备时出现错误
【发布时间】:2017-04-15 03:22:42
【问题描述】:

以下是命令和错误:

[raj@raj-arch apk]$ adb install android-armv7-release-unsigned.apk 
[100%] /data/local/tmp/android-armv7-release-unsigned.apk   pkg:
/data/local/tmp/android-armv7-release-unsigned.apk Failure
[INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION] rm failed for -f, No such
file or directory

我正在使用 Ionic 和 Cordova。不过真的不确定这个错误是怎么回事。

【问题讨论】:

    标签: android cordova ionic-framework adb


    【解决方案1】:

    如果在模拟器上,请尝试 ionic run androidionic emulate android

    不要混合这些。

    【讨论】:

    • 混合是什么意思?
    • 带 ionic 的 adb,最好从 ionic 中运行。
    【解决方案2】:

    您无法安装unsigned APK。 即使使用调试密钥签名,Android 也只允许安装签名的 APK。

    所以你可以关注其中的一些 https://developer.android.com/studio/publish/app-signing.html#signing-manuallyHow to use jarsigner for signing an apk?

    或使用调试版本:

    adb install android-armv7-debug.apk
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-08-06
      • 1970-01-01
      • 2013-04-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-04-28
      相关资源
      最近更新 更多