android:如何构建可在配备 Intel CPU 的设备上运行的应用程序? [英] android : how can i build my application that work on devices with Intel CPU?

查看:22
本文介绍了android:如何构建可在配备 Intel CPU 的设备上运行的应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何构建可在配备 Intel CPU 的设备上运行的应用程序?我的应用程序可以在采用 arm 技术的设备上运行,但是当我尝试在采用 Intel CPU 的设备上安装我的应用程序时,它会显示此消息:

how can i build my application that work on devices with Intel CPU ? my application work on devices with arm technology but when i try to install my app on device with Intel CPU it`s show this message :

设备不兼容

日志中的这条消息:

失败 [INSTALL_FAILED_CPU_ABI_INCOMPATIBLE]

Failure [INSTALL_FAILED_CPU_ABI_INCOMPATIBLE]

这是我的项目 build.gradle 文件:

this is my project build.gradle file :

apply plugin: 'com.android.application'

android {
compileSdkVersion 19
buildToolsVersion "19.1.0"

defaultConfig {
    applicationId "com.test.test"
    minSdkVersion 16
    targetSdkVersion 19
    versionCode 1
    versionName "0.0.1"
}
buildTypes {
    release {
        minifyEnabled  false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}


}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
// You must install or update the Google Repository through the SDK manager        to use this dependency.
compile 'com.google.android.gms:play-services:6.1.71'
compile 'com.android.support:appcompat-v7:20.0.0'
compile 'com.squareup.picasso:picasso:2.4.0'
compile 'com.pkmmte.view:circularimageview:1.1'
compile 'org.apache.directory.studio:org.apache.commons.io:2.4'
compile 'com.wefika:flowlayout:0.4.0'
compile 'com.github.navasmdc:MaterialDesign:1.+@aar'
}

我的项目使用 android studio IDE.我如何构建可在具有 arm 和 Intel CPU 的设备上运行的 APK 文件?谢谢

i use android studio IDE for my project. how can i build APK file that work on devices with both arm and Intel CPU`s ? thanks

推荐答案

您应该使用 gradle splits 来让您的应用程序能够针对不同平台轻松构建.更多阅读这里

You should use gradle splits to allow your app to be easily built for different platforms. More read on it here

这篇关于android:如何构建可在配备 Intel CPU 的设备上运行的应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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