Install Facebook apk on Android emulator

Has anyone been able to do this ?!

I tried various sdk / apk combinations 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 works with targetSdkVersion "L". So good. I run this emulator on 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 could not start the emulator. This is “Preparing Recommendations” for over 30 minutes.

With a lower version of sdk for Facebook (com.facebook.android:facebook-android-sdkhaps.21.1), I can run the emulator with target SDKVersion 19 and install Facebook.apk (Facebook APK 22.0)

Unfortunately, when I open the Facebook application, I receive a message stating that

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

I have to do something wrong. Can someone point me in the right direction?

+5
source share
2 answers

Answer from here

INSTALL_FAILED_NO_MATCHING_ABIS is when you try to install an application with native libraries, and it does not have a native library for your processor architecture. For example, if you compiled an application for armv7 and are trying to install it on an emulator that uses Intel architecture will not work instead.

Alternatively, you can implement the solution on an emulator, as shown here .

And, for the second error, I think it's pretty clear: Facebook will not allow you to use this application because they no longer support it.

+1
source

With the new Facebook SDKs, I could not find the APK file for Facebook containing the Downloads - Android Android SDK .

To install facebook on the emulator:

  • I installed the Intel Atom image from Google Play from the SDK manager.

  • Created AVD featuring Intel Atom from Google Play.

enter image description here

  • Now you can install Facebook from the Play Store (after logging in)

enter image description here

Now you can use Facebook to verify your own login, etc.

+1
source

Source: https://habr.com/ru/post/1214784/


All Articles