代码之家  ›  专栏  ›  技术社区  ›  kklw

无法在Android模拟器中安装APK。应用程序包含ARM本机代码

  •  0
  • kklw  · 技术社区  · 5 年前

    我下载了一个apk并试图通过拖动到genymotion模拟器中来安装它。得到这个错误

    An error occured while deploying the file.
    This probably means that the app contains ARM native code and your Genymotion device cannot run ARM instructions.
    
    2 回复  |  直到 5 年前
        1
  •  2
  •   Homezonic    5 年前

    您需要在模拟设备上安装ARM转换:

    • 为你的android设备下载正确的arm翻译档案 版本。对于Android 8,我使用arm_translation_oreo.zip。( Download Link )

    • 将.zip文件拖放到设备解锁屏幕,然后单击 当要求确认时打开“确定”

    现在你应该可以安装任何应用程序,即使它有ARM代码。 祝你好运!

        2
  •  0
  •   kklw    5 年前

    在这里下载zip文件,将文件拖到genymotion并运行这些命令。 https://github.com/m9rco/Genymotion_ARM_Translation

      adb shell
      cd /sdcard/Download/
      sh /system/bin/flash-archive.sh /sdcard/Download/Genymotion-ARM-Translation.zip
      adb reboot