我已经从https://github.com/DrKLO/Telegram导入了项目。我已经生成了签名的APK,当我尝试在模拟器中运行时,它显示以下错误。

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

如何解决此错误?

谢谢!

最佳答案

TMessagesProj/build.gradle文件的defaultConfig部分中,添加

ndk {
        abiFilters "x86"
    }

因此,defaultConfig部分为:
defaultConfig {
    minSdkVersion 14
    targetSdkVersion 23
    versionName "3.10.1"
    ndk {
        abiFilters "x86"
    }
}

祝好运!

07-24 09:27