Cannot find FBAndroid.apk as per Facebook Android SDK docs - xamarin

I am trying to use, Facebook Android SDK (Xamarin Component) in Visual Studio 2017. The chosen emulator is,
I downloaded the SDK as per the Xamarin documents,
To take advantage of the native Facebook dialogs, the Facebook
application must be installed on the device. If the Facebook
application is not installed on the device, fallbacks to Web based
dialogs can instead be used. If you are testing on an emulator which
does not have the ability to install Facebook from the Play store, you
can install FBAndroid.apk which is included in the SDK which can be
downloaded from:
https://developers.facebook.com/docs/android/downloads
The problem is, I don't see any FBAndroid.apk inside the zipped SDK file.
The questions are,
Is my understanding correct about the installation?
If so, from where would I find the apk to install in my emulator?
Edit: Installing an APK is not my concern now, I am worried about this part.
install FBAndroid.apk which is included in the SDK
P.S: Edited the title to reflect the change.

That section of the Xamarin doc is outdated. The Facebook APK is has not been available as a separate download since the v3 version of the SDK (circa 2015).
If you look under the Facebook SDK for Android v3.x Downloads section of the SDK Downloads you will find old FBAndroid.apk versions available for separate download.
If your emulator does not have the Play Store installed (Genymotion?), install it via OpenGApps and then install Facebook from the PlayStore.

Related

Android SDK location in OSX - Has it been actually installed by Unity Hub?

We are using Unity 2018.3.8f1.
We have added Android Build Support from Unity Hub - Add Component:
But if we go to Unity Preferences - External Tools, the Android SDK location is empty:
I have not been able to find the location of the Android SDK folder anywhere. I'm wondering if the component installed by Unity Hub is something different to Android SDK. Maybe it must be installed separately from: https://developer.android.com/studio?pkg=tools#downloads?
UPDATE
So far I have installed "Command line tools only" from the previous link. Then, I have installed OpenSDK (Vistual Studio did it for me: it asked me to update and install it as one of the things to update).
But when I opened tools/bin/sdkmanager, it said "Java is not installed". So I also installed Oracle Java SDK. Unfortunately tools/bin/sdkmanager returned errors after it. I applied a few workarounds I found by googling the errors. Still not luck.
So I have moved to the easy way: installing the full version of Android Studio. If we choose custom, we'll see that Android SDK Platform is going to be installed:
So it is working, but I still have not idea of how many things I have duplicated on my system wasting space. I have:
The Android component installed from Unity Hub
Android Studio installed, which comes with the emulator and the IDE (I don't need them)
OpenSDK (installed by Visual Studio)
An embedded version of Java in Unity
Oracle Java
Are they all actually needed? I don't think so!
It seems the only thing you are wondering is if the component installed by Unity hub is something different to Android SDK... the short answer is yes. You have to download it on the Android Developer SDK website you linked in the question. You only need the SDK under "Command line tools only" at the bottom of the page. If you do this you also need to download the jdk separatly here.

Xamarin Android SDK Manager doesn't save locations

Using Visual Studio 2017 and Xamarin, I installed the Xamarin Android SDK Manager to replace the default Android SDK Manager, which is now deprecated.
Then I updated JDK to the current x64 version and, using the Xamarin SDK Manager, I installed the most recent version of Android NDK.
I now want to update the locations of these SDK's in the Xamarin Android SDK Manager, Locations tab like so:
Yet, every time I restart the tool, the locations are reset. It also keeps telling me there's 2 components to install, yet when I do, it doesn't complain about any failure.
I have tried running as Admin and cannot seem to figure out what is wrong. Log files seem to be non existent. Is there anyone who has the same problem and found a solution?
This was a bug and has been fixed in 0.1.76.
See https://bugzilla.xamarin.com/show_bug.cgi?id=58319 for details.
Download the newest version here: https://marketplace.visualstudio.com/items?itemName=Xamarin.XamarinAndroidSDKManager

Installing Azure SDK without Emulators

Is it possible to install the Azure SDK (specifically VS 2015) without installing the associated emulators.
Simply I just never use them, and it would be good to not install them!
You can manually download the SDK files by visiting Azure SDK for .NET link here: https://azure.microsoft.com/en-in/downloads/archive-net-downloads/. You will be redirected to Microsoft Download page and there you will be able to select the components that you want to download.

How to install Google Play Service in Xamarin Android Player

How to install Google Play Service in Xamarin Android Player. I have found the link https://university.xamarin.com/resources/how-to-install-google-play-on-android-emulator which does not work in windows. It does not allow me to drop the Google Play Services .zip file from www.teamandroid.com/gapps/ .Any suggestion or link please.
Thanks!
I would recommend to use the android emulator that ships with the current version of Android Studio (by now 2.1). Google did a good job and a major overhaul with that version. It now is as fast as Genymotion or the Xamarin Android Player. Plus it as Google services support build in.

How to manually install Xamarin.Android without Xamarin account?

As I was already developing Android apps, JDK 8 and Android SDK are already installed in my machine. But it is in a custom location, not the default one. Using the default Visual Studio installer, I could not install Xamarin without installing JDK and Android SDK again in the default location. Then I tried to install Xamarin.Android manually according to instructions in this page-
https://developer.xamarin.com/guides/android/getting_started/installation/windows/manual_installation/
This page instructed to download and install Xamarin.Android from store. But Xamarin store requires an account, which I assume to manage the paid subscriptions. Given Xamarin is free now, how should I proceed to install Xamarin.Android manually and reuse already installed Android components?
You can contact us at contact#xamarin.com and we will send you the latest download links to the Xamarin.VisualStudio installer which includes both Xamarin.Android and Xamarin.iOS (there is no separate installer per platform for Windows).
The Xamarin.VisualStudio installer does not attempt to install the JDK or Android SDK, so this sounds like what you need.

Resources