[英]Importing Telegram API from GitHub repository to Android Studio
如您所知,Telegram API已在GitHub上打開。 我試圖將其導入到Android Studio中。 我的android studio是最新的,並且SDK一直更新到該日期。 我生成了簽名的APK,並嘗試運行項目並遇到以下錯誤。 我選擇基於x86進行編譯並嘗試運行它。 Screenshot.
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
任何幫助,將不勝感激。
謝謝!
下圖描述了解決方案。
在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.