在Android模拟器上安装Facebook apk [英] Installing Facebook apk on Android Emulator

查看:319
本文介绍了在Android模拟器上安装Facebook apk的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人设法做到这一点?



我从这个网站尝试过sdk / apk的各种组合,没有运气。
https://developers.facebook.com/docs/android/downloads



当我使用这个SDK ...

 依赖关系{
compile' com.facebook.android:facebook-android-sdk:3.23.0'
}

...它只是似乎与targetSdkVersionL一起使用。如此精细。我在x86中运行该模拟器,并使用adb安装

  ./ sdk / platform-tools / adb install Facebook-25.0.0.19 .30.apk 

我得到INSTALL_FAILED_NO_MATCHING_ABIS。在ARM上,我没有设法让仿真器实际启动。现在已经有30多分钟的准备建议了。



使用较低的Facebook sdk版本(com.facebook.android:facebook-android-sdk:3.21.1) ,我可以运行模拟器的targetSdkVersion 19,并安装Facebook.apk(Facebook APK 22.0)



不幸的是,当我打开Facebook应用程序,我得到

 的消息不再支持此版本的Android,请升级您的设备,然后重试
我必须做错事了。任何人都可以指向正确的方向?

解决方案

这里


INSTALL_FAILED_NO_MATCHING_ABIS是在您尝试安装
应用程序时本地库并没有本地库为
您的cpu架构。例如,如果您为armv7
编译了一个应用程序,并尝试将其安装在使用Intel
架构的模拟器上,那么它将无法正常工作。


此外,您可以在仿真器上实现一个解决方案,如此处所示。 p>

而且,对于第二个错误,我认为很清楚:Facebook不会让您使用该应用程序,因为它们不再支持它。


Has anyone managed to do this?!

I've tried various combinations of sdk/apk from this site with no luck. https://developers.facebook.com/docs/android/downloads

When I use this SDK...

dependencies {
    compile 'com.facebook.android:facebook-android-sdk:3.23.0'
}

... it only seems to work with targetSdkVersion "L". So fine. I run that emulator in x86 and use adb to install

./sdk/platform-tools/adb install Facebook-25.0.0.19.30.apk

I get "INSTALL_FAILED_NO_MATCHING_ABIS". On ARM, I have not managed to get the emulator to actually start. It's been "Preparing Recommendations" for over 30 minutes now.

With a lower Facebook sdk version (com.facebook.android:facebook-android-sdk:3.21.1), I am able to run the emulator with a targetSdkVersion of 19, and install the Facebook.apk (Facebook APK 22.0)

Unfortunately, when I open the Facebook app, I get the message that

"This version of android is no longer supported. please upgrade your device and try again"

I must be doing something wrong. Could anyone point me in the right direction?

解决方案

Answer taken from here

INSTALL_FAILED_NO_MATCHING_ABIS is when you are trying to install an app that has native libraries and it doesn't have a native library for your cpu architecture. For example if you compiled an app for armv7 and are trying to install it on an emulator that uses the Intel architecture instead it will not work.

Also, you can implement a solution on the emulator as seen here.

And, for the second error I think it's pretty clear: Facebook won't let you use that app because they don't support it anymore.

这篇关于在Android模拟器上安装Facebook apk的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆