[英]How can I discover CPU usage of my application in Android (programmatically)?
[英]android : how can i build my application that work on devices with Intel CPU?
如何構建可在具有Intel CPU的設備上運行的應用程序? 我的應用程序可在采用Arm技術的設備上運行,但是當我嘗試在具有Intel CPU的設備上安裝我的應用程序時,會顯示以下消息:
設備不兼容
和此消息在日志上:
失敗[INSTALL_FAILED_CPU_ABI_INCOMPATIBLE]
這是我的項目build.gradle文件:
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文件? 謝謝
您應該使用gradle splits來輕松為不同平台構建應用程序。 在這里閱讀更多
我終於找到問題了! 我刪除了這個圖書館
'org.apache.directory.studio:org.apache.commons.io:2.4'
然后,我的應用程序在裝有Intel cpu的設備上運行
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.