Android Studio not connecting to internet and get 403 response - android

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

Related

Xamarin - Cant start SDK or AVD

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.

Android Studio Unable install updates/New packages in Mac

I have installed Android Studio in my Mac. It is installed with basic packages. Now I am trying into install other Updates/New packages. But, it is failed with timeout error.
Please suggest that what is configuration seems to be missing...?
it seems to be a network issue: you have multiple timeout relative to local address 192.168.12.10. Check your network settings and wifi and ethernet wires.

Unable to download complete Android SDK

Hi,
I am trying to get the complete SDK. But one issue with the system in my office is few websites and ports are blocked. So everytime when it tries to get a list of the Android versions and Tools, it fails.
Get an error in Android SDK Manager Log as :
Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-2.xml, reason: Connection to https://dl-ssl.google.com refused
I tried to run android-studio-bundle-135.1629389.exe for Android Studio. I get an error as "Unable to elevate ERROR : 1812".
Somehow i added Armeabi to SDK but still it lacks the tools needed to create and AVD since I get an error as "No CPU/ABI system image available for this target".
Is there a link where i can get the complete SDK ? Or series of steps that anyone can help me with to setup my Android SDK.
NOTE : I am using SDK with Eclipse Luna (downloaded the pack adt-bundle-windows-x86-20140702 for Android developer site).
I am stuck and tried few other downloads but could not get it all working.
You will need to ask your IT Team to allow you access to that url. As it is your connections firewall that is blocking you from downloading the SDK.
Make sure Firewall was Disabled and your antivirus and check out this link at #4th and #5th point
[ https://code.google.com/p/android/issues/detail?id=21359
Regarding the second part of your question:
I tried to run android-studio-bundle-135.1629389.exe for Android
Studio. I get an error as "Unable to elevate ERROR : 1812".
I had this problem of the Android Studio setup being unable to elevate even tough I was running it as Administrator, and it came to a point where it wasn't even showing an error number anymore. It only solved when I deleted all my files on my temp folder, as easy as that. To find where your temp folder is, just open windows explorer and type %temp% at the address bar, then delete everything that is not saying it's being used by another software, if it asks you to.
Modify your proxy settings if u are using proxy to connect to internet in
C:\Users{USERNAME}.AndroidStudio\config\options.other.xml
<component name="HttpConfigurable">
<option name="USE_HTTP_PROXY" value="true" />
<option name="PROXY_HOST" value="11.160.0.212" />
<option name="PROXY_PORT" value="8080" />
</component>
I have the same problem bit is solved
try with "Run astried with "Run as administrator" administrator"

Android studio "Cannot start internal HTTP server"

I'am trying to install Android studio, but bad luck..:-(.
Windows 7
Latest Andriod studio
Latest Java
Installed the latest Java and also added it to the system settings according to http://www.youtube.com/watch?v=TTrUX1kUpDo
Also downloaded Gradle and updated the system settings
Stopped all firewall actions
So far so good, Android studio is also starting without any problems. But then I get two messages:
Internal HTTP server disabled: Cannot start internal HTTP server. Git integration, JavaScript debugger and LiveEdit may operate with errors. Please check your firewall settings and restart Android Studio
Gradle 'Nieuwproject' project refresh failed: Connection refused: connect
So after a few days of trying I was hoping that somebody could help me out..:-)
Here's what worked for me - I got the same error:
Internal HTTP server disabled: Cannot start internal HTTP server. Git integration, JavaScript debugger and LiveEdit may operate with errors. Please check your firewall settings and restart Android Studio
Run command prompt as administrator - type cmd in the 'search programs and files' text box in the Windows Start menu; right-click and select 'Run as administrator'.
At the command prompt, type
netsh winsock reset
Restart your PC
This worked for me.
Just to mention: I also added Android Studio and Gradle folders to my virus protection exceptions in case it was being blocked, but that didn't resolve the problem; the problem was only resolved once I followed the steps above.
Turn OFF firewall then turn ON again.
Sometimes firewall blocks it automatically when you start your PC. It also blocks to internet browsing for other reason but restarting firewall may solve this problem.
I encountered this problem after uninstalling Avast from my Computer,few days later i installed Avast again and the problem went away,Dont know what the connection is but thats what solved my problem
if Shell&ServicesEngine is installed on your computer, uninstall it and restart the Android Studio.

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.

Categories

Resources