La variante actualmente seleccionada "arm-debug" utiliza APK divididos, pero ninguno de los 4 split-apks son compatibles con el dispositivo actual

He importado el proyecto desde https://github.com/DrKLO/Telegram . He generado el APK firmado y cuando intento funcionar en el emulador demuestra el error siguiente.

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 

¿Cómo puedo corregir este error?

¡Gracias!

En el archivo TMessagesProj / build.gradle , a la derecha en la sección defaultConfig add

 ndk { abiFilters "x86" } 

Así que la sección defaultConfig es:

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

¡Buena suerte!

Puede intentar reiniciar el estudio de Android, y luego volver a conectar el dispositivo

El problema es que Genymotion utiliza x86 en lugar de arquitectura de brazo, y no parece venir con libhoudini (brazo a traductor x86) preinstalado.

Tiene dos opciones:

 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 

O

 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 

¡La mejor de las suertes!

  • El video codificado y enviado desde Android no se puede reproducir en iOS Telegram
  • Cómo utilizar getChats en tdlib
  • FlipAndroid es un fan de Google para Android, Todo sobre Android Phones, Android Wear, Android Dev y Aplicaciones para Android Aplicaciones.