Android的:如何建立我的应用程序,它与Intel CPU的设备的工作? [英] android : how can i build my application that work on devices with Intel CPU?
问题描述
我怎样才能建立我的应用程序,它与Intel CPU的设备的工作?与ARM技术的设备我的应用程序的工作,但是当我尝试安装我的设备上的应用程序与英特尔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 :
Devicenot兼容
Devicenot compatible
和日志此消息:
失败[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和英特尔CPU`s设备的工作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这个分裂,让您的应用程序,为不同的平台很容易建立。更多阅读它这里
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屋!