将Nexus 5x更新为Oreo后出现错误INSTALL_FAILED_NO_MATCHING_ABIS [英] Error INSTALL_FAILED_NO_MATCHING_ABIS after updating Nexus 5x to Oreo

查看:144
本文介绍了将Nexus 5x更新为Oreo后出现错误INSTALL_FAILED_NO_MATCHING_ABIS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用旧的应用程序(我是从4.0开始的),在将nexus 5x升级到Oreo(8.0)之后,我遇到了一些问题.

我的Nexus 5x是x86设备,每次我尝试安装该APK进行调试时,都会收到所谓的错误"INSTALL_FAILED_NO_MATCHING_ABIS".我之前从未遇到过这个问题,所以我开始寻找信息,而我发现唯一有用的是:

splits {
    abi {
        enable true
        reset()
        include 'x86', 'armeabi-v7a'
        universalApk true
    }
}

在我的 build.gradle 文件中.

但是这不起作用,为了确保问题出在8.0,而不是另一个外部因素,我用Nougat(7.1)创建了一个虚拟nexus 5x,它运行正常,但是当我将虚拟设备升级到8.0我遇到同样的ABI错误.

我的应用程序没有充分利用等级(确实很旧),但是我有此版本的插件:

dependencies {
    classpath 'com.android.tools.build:gradle:2.2.0'
}

}

我当前的Android Studio版本是2.3.3,由于处于测试阶段,我还没有更新到3.0.

我还安装了 Intel x86 Emulator Accelerator(HAXM安装程序)v 6.2.1

任何迹象都会被重视

预先感谢

解决方案

终于解决了问题,

问题是我还有其他项目,而我的主项目与这些其他项目相关联.其中之一是 google-play-services-lib ,当我生成apk时,将 google-play-services.jar.properties 文件复制到libs文件夹中./p>

从项目中删除 google-play-services.jar.properties 文件完全解决了该问题.

您在这里拥有完整的Google堆栈:

https://issuetracker.google.com/issues/65941637

感谢大家的评论!

I was working on an old app I have (I started it on 4.0), and I am facing some issues after upgrading my nexus 5x to Oreo (8.0).

My Nexus 5x is a x86 device, and everytime I try to install this apk for debug porpuses I get the so called error "INSTALL_FAILED_NO_MATCHING_ABIS". I had never faced this problem before so I started to look for information and the only thing I found that could be useful was:

splits {
    abi {
        enable true
        reset()
        include 'x86', 'armeabi-v7a'
        universalApk true
    }
}

In my build.gradle file.

However this did not work, in order to make sure that the problem was the 8.0 and not another external factor, I created a virtual nexus 5x with Nougat (7.1) and it runs ok, but when I upgrade the virtual device to 8.0 I face the same ABI error.

My app does not use grade in its full potential (is really old), but I have this version of the plugin:

dependencies {
    classpath 'com.android.tools.build:gradle:2.2.0'
}

}

My current version of Android Studio is 2.3.3, I have not updated yet to 3.0 as it is in beta phase.

I also have installed the Intel x86 Emulator Accelerator (HAXM installer) v 6.2.1

Any indications will be apreciated

Thanks in advance

解决方案

Well the problem was finally solved,

The problem was that I had other projects, and my main project linked to these additional projects. One of them was google-play-services-lib and when I generated the apk a google-play-services.jar.properties file was copied to the libs folder.

Removing that google-play-services.jar.properties file from the project solved the problem completely.

Here you have the full stack in Google:

https://issuetracker.google.com/issues/65941637

Thanks everyone for your comments!

这篇关于将Nexus 5x更新为Oreo后出现错误INSTALL_FAILED_NO_MATCHING_ABIS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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