So getting right to the point, I am behind a corporate firewall. I had to manually download the zip file for Android Studio which I extracted to program files (windows 10) on my machine. When I launch studio I'm dialogue'd studio needs to retrieve sdk's which I try to do but it fails on these 3 zips.
build-tools_r29.0.1-windows.zip
platform-29_r01.zip
sdk-tools-windows-4333796.zip
Mostly I see
java.net.SocketTimeoutException: Read timed out Warning: An error
occurred while preparing SDK package Android SDK Build-Tools 29.0.1:
Read timed out.
I'm assuming my firewall proxy is preventing this type of setup install since the links to these zips point outside our network but I am able to download the zips individually through a browser session one by one and save them here
c:\Users\myPin\AppData\Android\Sdk
I extracted each zip file and then reran Android Studio but it doesn't seem to have made any difference. It still goes out trying to download the same packages which I already extracted to the SDK folder. Shouldnt studio see the zips I've extracted in the SDK folder location? How can I get this working?
So we have work around I think others might find useful. If your having problems with the Gui SDK manager, then definitely use the cmd based sdk manager. This did not time out for us.
So for example where in the Gui I would get something like
java.net.SocketTimeoutException: Read timed out
When tryin got get platform-29_r01.zip
But if I try to perform the same operation using C:\Users\PIN\AppData\Local\Android\Sdk\Tools\bin\sdkmanager.bat using whatever cmd tool you like (I like cmder).
.\sdkmanager.bat --proxy=http --proxy_host=access.lb.ssa.gov --proxy_port=80 "platforms;android-28" --verbose
The above cmd will dl's and configure the sdk correctly.
You may have to do this for any of the sdk's you require. I think in our Firewall proxy scenario there's a user-agent setting or something that is not set for the Gui which is causing the timeouts but not with the cmd tools so this is a legitimate work around I think.
First things first. You have to check your Computer time, it must be accurate. If still error appeared, try this.
On you PC search Powershell and type code below. See image below for reference.
Path reference
Powershell Image
Failed version code
Click Retry
.\sdkmanager.bat --proxy=http --proxy_host=access.lb.ssa.gov --proxy_port=80 "platforms;android-29" --verbose
Run powershell > type cd> path of files
Check what SDK number version is getting error
From the android studio ERROR, click Retry while powershell is running.
If the said SDK version number is fixed, go to the next version number, by pressing control+C to powershell to stop the command.
Then type the same code with different number..
Note: If you do not have bin folder. You can create a folder named bin and create sdkmanager.bat file, inside sdkmanager.bat file, type this code >> sdkmanager.bat and save.
Related
I need to import a .gpx file to my virtual device (something I'm attempting for the first time today), but I'm having a problem I can't find any reference to anywhere else. I'm either having a moment and missing something that should be obvious or there's an issue with the specific build I have that's causing an issue. I have Android Studio 3.5.3 installed and I've tried multiple different virtual devices.
All references to the menu page referenced in my title that I can find online look like this:
While my version of that page looks like this:
That "Import GPX/KML" button always appears to be greyed out. What am I missing here?
Eventually found the cause of this and a solution. The issue was caused by an Android emulator release that updated the Location settings to include a Google Maps based UI. Release notes here, though I've found the 29.2.11 release on 03/12 also contained the UI change: https://androidstudio.googleblog.com/2019/12/emulator-29212-stable-google-maps-ui.html. On my Windows 10 computers this also removed the option of importing a GPX file (not sure if this was an intentional choice by Google or a bug). Not sure if it will affect Linux or Mac users but I've observed the issue on multiple Windows 10 devices.
The fix I found for the issue was to downgrade my emulator to 29.2.1. That version can be found here:
http://dl.google.com/android/repository/emulator-darwin-5889189.zip
http://dl.google.com/android/repository/emulator-windows-5889189.zip
http://dl.google.com/android/repository/emulator-linux-5889189.zip
In Windows, next go to C:\Users[username]\AppData\Local\Android\Sdk\emulator. Those of a cautious disposition can backup this folder, but either way the package.xml file will be needed and everything else can be moved or deleted. Edit the details in the XML to match the version number of the downloaded emulator. Copy the downloaded files to this location along with the package.xml. Then just make sure not to download the update again when Android Studio is opened.
Basically I just installed for the first time in my life Android Studio android-studio-ide-182.5264788-windows.exe and when I open it I get:
Missing SDK, No Android found SDK found
I also checked this path: C:\Users\<user>\AppData\Local but I have not found and Android folder there because I was looking for C:\Users\<user>\AppData\Local\Android\Sdk
If I press next next finish I get:
Nothing to do!
Android SDK is up to date.
SDK tools directory is missing
I have also checked all kind of solutions posted on the internet but none of them fixed my problem.
I figured it out meanwhile but I forgot to update the question. Basically I had those issues because of the corporate proxy which was blocking some resources when installation was in progress.
The solution for me was to configure the proxy inside Android Studio under System Settings > HTTP Proxy. I have set it to Manual proxy configuration.
Besides this I also had to configure some security certificate inside the Java Version which was used by Android Studio. I used this code to do that: https://knowledge.digicert.com/solution/SO4085.html
The last thing was to run this: sdkmanager --licenses. I tried first in cmd but it was not working, I don't know for what reason but after I tried in Idea it worked.
After all of these, it worked. I had a small issue with the .. but it got fixed after I went in Setings > Build, Execution, Deployment > Instant Run and disabled Instant Run.
Download the zip file: http://dl.google.com/android/android-sdk_r24.4.1-windows.zip
Unzip it to SDK directory, and files like this:
D:\Android_sdk\platforms
D:\Android_sdk\tools
D:\Android_sdk\SDK Manager.exe
D:\Android_sdk\SDK Readme.txt
Restart Adnroid Studio, Configure->SDK Manager
Then you can change the Android SDK Location to your SDK path
After installation Click on configuration Go to SDK manager -> SDK tools and
uncheck “Hide Obsolete Packages”
Refer the image
after that check the mentioned package and install it –
C:\Users..\AppData\Local\Android\Sdk\tools\bin is created or not.
After creating project
Go to Tools
AVD manager
Your virtual device -> Create virtual device
Select Hardware :- Nexus 5x (Resolution)
Next
Check the latest or download latest one (OS)
Next
As it is default settings
Launch Virtual device
network adapter ipv4 settings or proxy.. I checked that, then it solved.
When I try to startup my project w/ IIS Express I get the error:
enter image description here
VS 2017
Project Properties
Debug
Launch Browser //http://localhost:5000 or whatever
Uncheck Enable SSL
App Url //http://localhost:5000 or whatever. make sure same with Launch Browser url
Save and Close
Open launchsettings.Json under Properties (Solution Explorer)
Make sure old settings is deleted. If not delete it.
Save and Close.
Hope it helps
I encountered this error when trying to launch a downloaded project in which the target framework version was different from the version installed in my environment. I opened the “.csproj” file in a text editor, corrected the version in the “TargetFramework” node and saved the modified file. In order to be sure to make the changes take effect, I closed and reopened the Visual Studio solution containing the project. Then the project started correctly.
I am trying to load the SDK for Vuzix through the SDK manager in Android Studio but for some reason it will not display the downloads in 'SDK platforms' and 'SDK tools'.
In the 'SDK update sites' tab next to the Vuzix link I added there is a red exclamation point that displays " cvc-elt.1.a cannot find the declaration of element 'sdk: sdk-addon' " when hovered over.
I am new to SDK's and have no idea what to do for this error. I've downloaded the android SDK's and sources for 26,25,24, and 23 thinking it could help but the error still shows up.
I still don't know what the error means but I solved it by connecting to my hotspot instead of my work network.
So my guess is it was a firewall issue or something, if anyone else has this error.
This means that the parser does not know the namespace. I tried it on Win7 and android studio 2.3.3 with the same result.
I tried it without the namespace or running android studio with oracle sdk. Both failed.
At the moment I try to run it on a virtual linux machine. Android Studio 2.3.3 will parse the addon xml file and download the files.
On Win7 I installed them manually, but they were not really integrated into to system and I stucked when I wanted to use the barcode SDK. maybe I am able some day to add simply this jar lib -
On a first look using linux seems to be the solution. But than I run into problems with the case sensitve file system. The vuzix SDK seems to need a linux system on a case insensitve file system.
*facepalm* and I am quite sure that i will fail at all. On linux a simple GUI compiles only against API 26 without errors.
I have an Azure 2.8.1 project that "just works" on one machine, and on another completely fails to start -- I'm pulling my hair out trying to get this to work.
The project contains a worker role (2 instances) and a web role (1 instance).
The progress bar goes to about ~80% and then it fails -- if I switch over to the compute emulator, I just see errors about the services being unhealthy or busy.
In Visual Studio I eventually get the following error message:
---------------------------
Microsoft Visual Studio
---------------------------
Microsoft Azure Tools for Microsoft Visual Studio
There was an error attaching the debugger to the role instance
'deployment28(5).MySolution.WebRoleProject_IN_0' with Process Id: '13288'.
Operation not supported. Unknown error: 0x80070057.
---------------------------
OK
---------------------------
Any help troubleshooting this would be appreciated!
Turns out it was related to file pathing. If there is any file or folder over 260 characters in length the project path, the Azure emulator will completely crap out on you (even if it's not in source control, and it's not included in your project or package).
I hit this problem because NPM (prior to version 3.x) creates super deep folder structures under node_modules folders that it creates.
I got around the problem by deleting all of my node_modules folders, upgrading to NPM 3.5.2, and then re-running npm install.
Run Visual Studio 2015 as administrator, there many related issues with compute emulators caused by unprivileged execution .
Make sure you are not using the express emulator on the machine where you are not able to run the project.
The express emulator does not emulate multiple instances of your worker roles!
Hope this helps.