INSTALL_FAILED_CPU_ABI_INCOMPATIBLE而在目标安装应用收到此错误消息,如何解决? [英] INSTALL_FAILED_CPU_ABI_INCOMPATIBLE while installing apps on target getting this error message how to resolve?

查看:178
本文介绍了INSTALL_FAILED_CPU_ABI_INCOMPATIBLE而在目标安装应用收到此错误消息,如何解决?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

想知道是否有任何架构明智的问题,要不?

want to know is there any architecture wise problem or else ?

推荐答案

这是ABI(应用二进制接口)指定的信息的特定于机器架构。 维基百科:

An ABI(Application Binary Interface) specifies details that are specific to the machine architecture. From Wikipedia:

的ABI覆盖细节,例如数据类型,   大小和定位;主叫   惯例,它控制如何   函数的参数传递和   返回检索到的值;系统   呼叫号码及如何申请   应使系统调用   操作系统;和在一个的情况下   完整的操作系统ABI中,   对象文件的二进制格式,程序   图书馆等。

ABIs cover details such as data type, size, and alignment; the calling convention, which controls how functions' arguments are passed and return values retrieved; the system call numbers and how an application should make system calls to the operating system; and in the case of a complete operating system ABI, the binary format of object files, program libraries and so on.

在PackageManager.java文件中找到这样的:

Found this in the "PackageManager.java" file:

公共静态最终诠释INSTALL_FAILED_CPU_ABI_INCOMPATIBLE = -16;

public static final int INSTALL_FAILED_CPU_ABI_INCOMPATIBLE = -16;

安装返回code:这是   传递给    IPackageInstallObserver 通过    installPackage(android.net.Uri,   IPackageInstallObserver,INT)如果   正在安装的软件包中包含   本土code,但没有一个是   与设备的兼容   CPU_ABI。

Installation return code: this is passed to the IPackageInstallObserver by installPackage(android.net.Uri, IPackageInstallObserver, int) if the package being installed contains native code, but none that is compatible with the the device's CPU_ABI.

您的apk必须包含编译(使用NDK?),在另一台计算机/仿真器的一些二进制code,当它被安装在其它机器上(模拟器)。

Your apk must contain some binary code compiled(using NDK?) for a different machine/emulator while it is being installed on some other machine(emulator).

这篇关于INSTALL_FAILED_CPU_ABI_INCOMPATIBLE而在目标安装应用收到此错误消息,如何解决?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆