How to manually install Xamarin.Android without Xamarin account? - xamarin

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.

Related

Nativescript install on windows doesn't work.

I installed nativescript from https://docs.nativescript.org/start/quick-setup page, and when I checked tns doctor I get this error:
I could search for the errors and probably learn a thing or two about the errors, but what I don't understand is why the installer itself didn't install Android SDK 22, or the other issues. I gave it full permission and it installed the sdk and other everything.
You need to android sdk 23 AND the sdk of your choice (ie 25). I would recommend using the installer instead of the cmd install line as it is a lot easier to use, which can be found here. If you use the installer, it installs the versions you need and changes the environment variables for you as well as the other parts it needs.
EDIT
Another thing to mention is that even though the installer changes the paths for you and installs the sdks, you still need to make your own emulator image. It's not hard to setup but unfortunately the nativescript installer doesnt do that for you
First up, install Android Studio
https://developer.android.com/studio
Install android API level 25 (Nougat), from the SDK Manager.
Also, setup a virtual device, if you want to run apps on emulator.
That should setup all necessary environment variables for building Android apps with nativescript.
According to the result of tns doctor, you have to install Android SDK.
You can simply install Andriod Studio. Start up Android studio, and use the built-in SDK manager to install required SDK, choose the correct version(>=23 <= 26) which was indicated in the result of tns doctor.
Alternatively, you can install Android SDK standalone, download it from Android developer site and extract files in your system, then follow the instruction of tns doctor, go to Android SDK folder, and find sdkmanager, and start up it to install required SDK with correct version.
Set ANDROID_HOME environment variable, the location points to the Android SDK folder, eg. E:\Users\hantsy\AppData\Local\Android\Sdk
Finally, try to run tns doctor again to check if all conditions are satisfied.
You can run the packaged Android app in one of the following:
Android SDK built-in simulator
A real Android mobile device
Genymotion Android simulator, more productive than SDK built-in one

Cannot find FBAndroid.apk as per Facebook Android SDK docs

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.

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

Android Studio for Project Tango

I have downloaded latest Android Studio 2.2.3 and I want to start with C examples for project Tango phone (Lenovo Phab 2 Pro) using C API. The phone itself says it's run Android 6.0.1, kernel 3.10.84 on device.
Google developer documentation for Tango Project suggest to install Android Studio with Android SDK 24.4.1, Platform tools 23.1 and NDK 11.0.0.
By installing latest Android Studio there is no offering to install those versions of tools. Is it possible to use whatever SDK for development (latest)?
Where do I find aforementioned versions?
What Android SDK & NDK version is required for phone which run Android 6.0.1?
I started using the Dev Kit which runs Android 4.4 KitKat and I just recently got the Phab 2 Pro this week and I didn't need to make any updates to my Android Studio SDK manager.
Since I am working only with the Tango and not with the underlying Android features, I have found no need to require 6.0 for I am not using any of the extra features.
Also go here and clone the repo and run the hello-world and see if you can get it to work on your phone, if so you are good to go!
the SDK Manager which is part of Android Studio offers you choices on levels of android builds like 4.4.2/5.1/6.0/6.1, etc. Platform tools package is a module within the SDK Manager which also has levels which are based on the android build. The NDK is a completely different package and depending on what you want to accomplish you might be able to not worry about it to start of with. install Android Studio and then setup the SDK Manager to cover what devices you want to build for. get the latest Platform tools package setup and you will be ready to code. once you start setting up your environment things will fall in place. for the most part the installer does the work. pay attention to the things needed prior to installing Android Studio. i think you need to install a jdk and set paths and variables.

Android SDK could not be found - Android SDK Location is correct

I've installed Xamarin and tried in Visual Studio to start with a small app and test the web view with this. So for this, I've installed the JDK, the Android SDK and Android NDK on my computer. I'm working throught a tutorial for a web view and I have the problem, when I run the Main.axml, it shows me the error, that my Android SDK could not be found (look at the first attachement). When I check my location paths for the JDK, SDK and NDK, it shows me the correct path and a green tick, so the path and files are correct (look at the second attachement). But my app don't recognize it. What's the problem here? I found some threads on stackoverflow for the same problem, but nothing helped me.
1. Attachement
2. Attachement
OS: Windows 8.1
IDE: MS Visual Studio 14.0.23
Xamarin: 4.2.0
EDIT:
I also tried to open my Android SDK Manager, but this one is disabled in my visual studio. I've installed Xamarin, so it should work:
Any ideas? Thanks.
I tried so many things and finally I have the solution for my problem:
Possible reason for the problem: I just installed the Xamarin, which installes also the JDK, Android SKD and Android NDK in it's wizzard, so I thought this should be the correct versions. After installing Xamarin, I opened my Visual Studio and checked the paths (Tool - Options - Xamarin - Android seetings) for my JDK, SDK and NDK. The paths show on the versions, which were installed by Xamarin. My Android SDK Manager was disabled.
Solution: Then I uninstall everything - the JDK, SDK and NDK and also the whole Xamarin and my old Android Studio. After that, I decided to install the newest JDK from the Java website, the newes Android SDK/NDK from the Android Studio website and a plane xamarin without the sdk/jdk installation. So I could be sure, that I have the correct versions. After the installation, I again opened Visual Studio - Tool - Options - Android seetings and set the paths to the new versions. Than I checked my Android SDK Manager and it was finally enabled and so I installed also the newest Android SDK Tools. After that I cleaned and builded my solution, start it and my android emulator opens my webview page. So I think, the best way is to install the required programms from their website and not automaticlly with xamarin. Now it works. Cheers.

Resources