Xamarin - Cant start SDK or AVD - android

So I have just installed the community version of Visual Studio 2017 and added Xamarin to it. When the installation was over, a error log was created saying in it that the SDK and Emulator components were not downloaded properly. So I redownloaded and same thing. I then tried modifying and repairing, again nothing helped - still the same problem.
Now when I start VS without minding the errors, I am not able to access the SDK and AVD. I click on the icons and nothing happens. I checked the path to the SDK (looks alright to me, but I guess as the error log said - SDK might not be properly installed).
I am in a corporate environment and am not allowed to download just the SDK from the android website.
I am basically trying to reach out to you all for help. All tips and answers are appreciated.
Cheers!
Error Log:
The product failed to install the listed workloads and components due to one or more package failures.
Incomplete workloads
Mobile development with .NET (Microsoft.VisualStudio.Workload.NetCrossPlat,version=15.0.26403.0)
Incomplete components
Android NDK (R13B) (Component.Android.NDK.R13B,version=13.1.6)
Android SDK setup (API level 23) (Component.Android.SDK23,version=15.0.26208.0)
Google Android Emulator (API Level 23) (Component.Google.Android.Emulator.API23.V2,version=15.0.26208.0)
Intel Hardware Accelerated Execution Manager (HAXM) (Component.HAXM,version=15.0.26208.0)
You can search for solutions using the information below, modify your selections for the above workloads and components and retry the installation, or remove the product from your machine.
Following is a collection of individual package failures that led to the incomplete workloads and components above. To search for existing reports of these specific problems, please copy and paste the URL from each package failure into a web browser. If the issue has already been reported, you can find solutions or workarounds there. If the issue has not been reported, you can create a new issue where other people will be able to find solutions or workarounds.
Package 'AndroidSDKV2,version=24.4.1.9' failed to download from 'https://go.microsoft.com/fwlink/?linkid=824150'.
Search URL: https://aka.ms/VSSetupErrorReports?q=PackageId=AndroidSDKV2;PackageAction=DownloadPackage;ReturnCode=0x80131509
Impacted workloads
Mobile development with .NET (Microsoft.VisualStudio.Workload.NetCrossPlat,version=15.0.26403.0)
Impacted components
Android SDK setup (API level 23) (Component.Android.SDK23,version=15.0.26208.0)
Google Android Emulator (API Level 23) (Component.Google.Android.Emulator.API23.V2,version=15.0.26208.0)
Intel Hardware Accelerated Execution Manager (HAXM) (Component.HAXM,version=15.0.26208.0)
Details
WebClient download failed: The remote server returned an error: (407) Proxy Authentication Required.
Bits download failed: Error context: BG_ERROR_CONTEXT_REMOTE_FILE, Error code: -2145844841
WinInet download failed: Url 'http://dl.google.com/android/installer_r24.4.1-windows.exe' returned HTTP status code: 403
Package 'AndroidNDK_R13B,version=13.1.5,chip=x64' failed to download from 'https://go.microsoft.com/fwlink/?linkid=833504'.
Search URL: https://aka.ms/VSSetupErrorReports?q=PackageId=AndroidNDK_R13B;PackageAction=DownloadPackage;ReturnCode=0x80131509
Impacted workloads
Mobile development with .NET (Microsoft.VisualStudio.Workload.NetCrossPlat,version=15.0.26403.0)
Impacted components
Android NDK (R13B) (Component.Android.NDK.R13B,version=13.1.6)
Details
WebClient download failed: The remote server returned an error: (407) Proxy Authentication Required.
Bits download failed: Error context: BG_ERROR_CONTEXT_REMOTE_FILE, Error code: -2145844841
WinInet download failed: Url 'http://dl.google.com/android/repository/android-ndk-r13b-windows-x86_64.zip' returned HTTP status code: 403

IF you are using windows 10, check if Hyper-V and Hyper-V Tools are installed.
Open the RUN Command on your start menu, or using Windows + R - Type "appwiz.cpl" - click on "Turn Windows features on or off" and check if Hyper-V are selected and installed.
If not, select-it and restart your machine, and this mus solve your xamarin issue.
If, this dont solve, this could be a firewall issue, and this maybe blocking the download of xamarin tools.

Related

Android Studio not connecting to internet and get 403 response

When installing Android Studio the action Finding available SDK components seems failed and no SDK get installed.
Also tried to install SDK using Android commond line tools and when I try to get list of SDKs by using below command
sdkmanager --list --verbose I get 403 error for downloading below xml file
https://dl.google.com/android/repository/addons_list-1.xml,https://dl.google.com/android/repository/addons_list-2.xml,https://dl.google.com/android/repository/addons_list-3.xml
But when I try from browser I am able to download those files.I am using my office laptop and I have checked Automatically detect settings in LAN settings and even I tried with uncheck that option also ,still getting the same result.
When I try to connect the Office VPN and set the proxy then I am not able to download by browser also
I tried with change setting in "No Proxy", "Auto Detect" and "Http Proxy" options in android studio also still no luck
And when I start Android Studio it shows "Untrusted Server's certificate" for "*.google.com" and I click Accept to continue.
I am using Windows 10 and AdoptOpenJDK 11. How I can resolve this issue.
Thanks in advance

All packages are not available for download error in android

All packages are not available for download!
The following packages are not available:
- Package id sources;android-24
Am trying getting data from database by using of web services, when am running the application getting an above shown error.
How can I resolve this issue in the android studio?
Open SDK Manager -> SDK Platform
Check on Show Package Details and Sources for Android ... then download
The popup error is not related to the exception you got on your application. Api 24 source code is not fully available. Hence you got the error. Change complieSdkVersion and targetSdkVersion to 23 and sync the gradle.
I just closed my IDE then restarted my computer. When I opened the IDE the error was no more.
Make sure you have good internet connection, as the error might be caused by a lack of internet connection preventing the IDE from reaching the site.
Check if the SDK version is installed on Android studio for that particular Android device. e.g. If Android Device has version 4.3 then check if SDK for this version 4.3 is installed, you can check it through Android Studio SDK manager. If not installed then install it complete.
Restart Android studio, reconnect the device, That's it
A thing I ran into, check to see if you have more than one android sdk on your box. I'm not sure if it was confusing Android studio or not, but I had one previously installed under Program Files. I ended up going into the AppData\Local\Android version used by Android studio and adding stuff I needed manually running the SDK manager as administrator.
This means that you can't reach the download site, and it has many reasons one of them is that you are in a country in wich the American laws won't allow to use such technology so you have to use a proxy program and to configure the sitting in your Android studio to use the proxy gate and port.

Android SDK installation failed - Connection reset. Nothing is installed

Hello I have a problem with installing the packages using the Android SDK Manager.
I get Connection reset. Nothing is installed.
I am on Windows 7 64 bits using JDK 7.
Here is what I tried so far without success:
Installed Android SDK installer_r18-windows.exe
Then run Android SDK Manager as Administrator and I can select which packages I want to install.
So far so good.
Then when I select the packages I want and click Install then the log says:
Downloading SDK Platform Android 2.3.3, API 10, revision 2
peer not authenticated
I googled this error and they say that you need to set Force https://... sources to be fetched using http://....
If I do that and click install I get this error:
Downloading SDK Platform Android 2.3.3, API 10, revision 2
Connection reset
At every package it tries to install.
I tried setting the proxy setting according to my internet providers setting. I get the errors again.
I tried deactivating the firewall. Same errors.
So how do I get the Andoid SDK Manager to install the packages succesfully?.
Thank you for your help.
Others have also faced similar problems when downloadind SDK components.
A simple way to fix this problem is to modify the Pkg.SourceUrl property, changing HTTPS to HTTP to avoid secure downloads, as illustrated in the answer to this question.
I ran into the same problem today. In my case, the download would start and then abort with the same error message.
If the download starts and then aborts, try downloading again - SDK Manager will resume the download where it aborted. It doesn't advertise that feature (let alone resume by itself), but the log entries report that it is in fact resuming the download.
You might need to retry a few times - depending on how stable your Internet connection is and how much you download. Not too elegant, but will do for a quick on-the-fly install.
This may be cause of system time may have changed. Synchronize your system time with one of the internet time servers. Restart the installation. Hope it works.

Error Installing Android SDK Platform Tools

I have downloaded eclipse, the android SDK starter package, and installed the "Developer Tools." Following the guide on developer.android.com exactly. After the developer tools have installed, and eclipse restarts I get two error messages:
1: "SDK Platform Tools component is missing!
Please use the SDK Manager to install it."
So, I go in eclipse under Windows > Android SDK Manager and while trying to fetch the files it brings up the sdk manager log with the following:
Fetching https://dl-ssl.google.com/android/repository/addons_list-1.xml
Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Invalid argument: connect
Fetched Add-ons List successfully
Fetching URL: https://dl-ssl.google.com/android/repository/repository-5.xml
Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-5.xml, reason: Invalid argument: connect
Done loading packages.
Because of this error I cannot use the SDK Manager to install it. Any ideas on how to fix this?
2: "Failed to initialize Monitor Thread: Unable to establish loopback connection."
No idea what this one means.
Any help would be greatly appreciated. I have spent a few hours googling trying to find fixes but nothing seems to work, or the fixes refer to a non-existent "settings" window.
You might have to set the SDK installation path yourself somewhere in eclipse. Look out for such problems!!
This could be a proxy which is not allowing SDK manager to fetch the add-on list. You could try to put in an exception for this url and try again.
Adding an exception had worked for me earlier.

Android SDK beginner question

I'm a n00b developer at my second attempt to use the Android SDK. I'm
developing on the Mac platform and I've noticed that the latest
version of the SDK doesn't include anything except the tools (so I
have no plugins, no targets to choose from inside the package I
downloaded).
So I tried to use the Android SDK and AVD Manager to download and
install some, however, I got this error:
Failed to fetch URL https://dl-ssl.google.com/android/repository/
I went to the settings and checked the box to force fetching via HTTP,
but no result. I was suggested to look for a configuration file, but
couldn't find any.
Any suggestions? I'm dying to get my hands dirty with the SDK.
Whenever I've seen that error, I've just retried the download several times and eventually it went through. I've only run into it when I was behind a proxy, but that might not be your problem.
Here you have a Android tutorial, step by step.
http://www.vogella.de/articles/Android/article.html
Its means that you are behind a proxy.Go tools->options in your android SDK manager and enter your http Proxy server and port and it'll work.

Categories

Resources