简体   繁体   English

将电报API从GitHub存储库导入Android Studio

[英]Importing Telegram API from GitHub repository to Android Studio

As you know Telegram API is open on GitHub. 如您所知,Telegram API已在GitHub上打开。 I tried to import it on my Android Studio. 我试图将其导入到Android Studio中。 My android studio is up to date and also SDK is updated till the date. 我的android studio是最新的,并且SDK一直更新到该日期。 I have generated signed APK and tried to run project and got following errors. 我生成了签名的APK,并尝试运行项目并遇到以下错误。 I have chosen x86 based to compile and tried to run it. 我选择基于x86进行编译并尝试运行它。 Screenshot. http://img.prntscr.com/img?url=http://i.imgur.com/b0HqgmO.png http://img.prntscr.com/img?url=http://i.imgur.com/b0HqgmO.png

05/23 21:39:23: Launching TMessagesProj
The currently selected variant "arm-debug" uses split APKs, but none of the 1 split apks are compatible with the current device with density "560" and ABIs "x86".
Error while Installing APK

Any help would be appreciated. 任何帮助,将不胜感激。

Thank You! 谢谢!

下图描述了解决方案。

in the defaultConfig (gradle Build file) add this at the end of android {} check for your architectures 在defaultConfig(gradle Build文件)中,在android {}末尾添加此代码,检查您的架构

android {
  ...
  splits {
    abi {
      enable true
      reset()
      include 'x86', 'armeabi-v7a', 'mips'
      universalApk true
    }
  }
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM