2016-05-15 7 views
4

https://github.com/DrKLO/Telegramからプロジェクトをインポートしました。署名済みのAPKを生成しました。エミュレータで実行しようとすると、次のエラーが表示されます。現在選択されているバリアント "arm-debug"は分割されたAPKを使用しますが、4つの分割APのどれも現在のデバイスと互換性がありません

05/15 17:14:42: Launching TMessagesProj 
The currently selected variant "arm-debug" uses split APKs, but none of the 4 split apks are compatible with the current device with density "480" and ABIs "x86". 
Error while Installing APK 

このエラーを修正するにはどうすればよいですか?

ありがとうございます!

+0

本当に変です。それはどこにもない私に起こった。同じデバイスで同じプロジェクトをテストしていて、突然このエラーが発生しました。 @振东东东の答えにしたがって解決される。 Android Studioを再起動し、デバイスを再接続します。 – Abk

答えて

0

問題は、Genemotionがarmアーキテクチャの代わりにx86を使用しており、libhoudini(arm to x86トランスレータ)がプリインストールされていないようです。

install the native arm translation, which I have never had much luck with, will occasionally crash my devices with no warning, and is the #1 cause of crashes in my app in production - http://mir.cr/0ZIO8PME 

OR

Build a native x86 binary of your app. Assuming you are using the most recent Cordova 4.0, this is default with gradle, and you will be able to find an x86 build already done along side the arm build. According to the Cordova release notes, you can manually trigger gradle if it isn't already enabled with: 

cordova build android -- --gradle 

運のベストを:

2つのオプションがあります!右defaultConfigセクションでTMessagesProj/build.gradleファイルで

4

は、

ndk { 
     abiFilters "x86" 
    } 

を追加するので、defaultConfigセクションでは、次のとおりです。

defaultConfig { 
    minSdkVersion 14 
    targetSdkVersion 23 
    versionName "3.10.1" 
    ndk { 
     abiFilters "x86" 
    } 
} 

幸運!

2

アンドロイドスタジオを再起動してから、デバイスを再接続することができます

関連する問題