No Android SDK found SDK tools directory missing - android-studio

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.

Related

How to fix "Unable to locate adb" error in AVD Manager?

I can not find any solution for this error when starting virtual device.
There are some similar topics here, I know, but it seems that none of them solves my issue.
I tried:
uninstall/install Android SDK Platform Tools in SDK Manager
add Platform Tools path to system PATH variable (windows)
set ANDROID_ADB_SERVER_PORT
download Platform Tools from https://developer.android.com/studio/releases/platform-tools and install it
For me extending my path helped.
%ANDROID_SDK%\emulator
%ANDROID_SDK%\platform-tools
%ANDROID_SDK%\tools
%ANDROID_SDK%\tools\bin
See https://stackoverflow.com/a/54030970/16364154
I just did this today
1>First of all disable fast restart from here
2>Then enable VT-x from here
3>Third go to your antivirus. If AVG, open the menu options and click quarantine.Else see where to find quaratine chestbox for your antivirus And then there should be something whose file name will be adb.exe. Yes, even if it it shows in the platform tools, there will be a file with file location Idead or something like that and restore it
4>Then go to your android studio and go to file in the top left corner. Click invalidate/caches and then Invalidate and Restart. Then try.
5> Also go to the sdk manager and update everything that isn't updated.
6>Should work\
If this does not work, just comment it and I will find a new way

Android Studio - No SDK Found - Setup wizard fails - Firewall Proxy

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.

Vuzix sdk loading error cvc-elt.1.a cannot find the declaration of element 'sdk: sdk-addon'

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.

Cannot launch Xamarin.iOS app on device

I am developing an iPad application with Xamarin.iOS and MVVMcross. So I have a PCL with my View-Model and my Model, and an iOS project with the view. I use Visual Studio.
Before, I used Xamarin.iOS 6.3.6 beta version, and when I tried to launch the app on the device, an .app file was created and getting it with my Ipad, I could launch the application (impossible to launch directly from Visual Studio).
Yesterday, I uploaded Xamarin.iOS to 6.4.1. On simulator, everything's okay. When I try to launch the application on device, now the app is directly installed but the build stop and the following error appear in the debug output :
Failed to load AOT module '<my PCL>' while running in aot-only mode: doesn't match assembly.
And if I click on my app icon on the device,a black screen appear and disappear immediately.
Does someone know why this error appear?
This looks like something was cached somewhere or not updated correctly.
Here are a few ideas to try:
Delete the app from the device.
Clean & Rebuild your app.
Build & install from Xamarin Studio on your Mac.
Copy the Debug configuration to a new configuration (DebugTest for instance), and run that configuration instead.
I regularly get the same issue here.
The workaround that I use is to switch the platform in the Visual Studio build Configuration Manager to "iPhoneSimulator", run a quick debug session on that, then switch the platform back to "iPhone", and the problem disappears for a while.
Unfortunately I have no intelligent reason as to why this works. It seems to be doing a better job of the "Clean and Rebuild".
After reading a similar bug, I found that clearing the mtbs folder on the OS X host which is located at $HOME/Library/Caches/Xamarin/mtbs/ fixes this problem for me.
I have to do it so frequently I just have a PuTTY session open on my Windows box to clear the folder. I do hope that Xamarin fixes this issue soon.
Make sure Linker Behaviour is set to Don't Link
Clean, rebuild, remove old version from app.
Worked for me at least.
This happened to me after I upgraded to XCode 5/iOS7. I noticed a warning that I hadn't installed XCode Command Line Tools. After I did that I rebuilt the application and it now runs.
I just had this problem and got it to work again by opening the Apple project properties and changing the provisioning profile identity from "Distribution" to "Developer".
My workaround on Mac is to
Close Solution in XS
Quit XS. Command-Q
Reopen it and reopen solution.
After that it usually works again.

"Check update" is not working in android studio

I have tried to "check update" in android studio
Help>Check for Updates
but it says
Connection failed. Please check your network connection and try again
But my Internet is working fine. .I've also tried to switch off my firewall. Is this bug of google service?
Update : Whenever updates | installations are failed, start the android studio as administrator.
Old Answer:
This is possibly a bug of Android Studio.
The following steps may help to fix this issue:
Open configuration
Select Settings
Select HTTP Proxy
Set to use no proxy
Restart Andriod studio
start the android studio as administrator. that helps me in android studio whenever updates/installations are failed.
Maybe u can try: Settings -> System settings -> HTTP Proxy -> auto-detect proxy settings.
I had the same problem. To fix I had to manually download a newer version from https://developer.android.com/studio/.
I'm currently running Android Studio 3.2.1 and it updates fine.
Also, in Preferences > Appearance & Behavior > System Settings > HTTP Proxy make sure that Auto-detect proxy settings is checked.
Check Screenshot
It doesn't seem to be a bug. I can confirm that the update worked perfectly fine on my home network. When on my office network, trying to update gives a connection error.
Must have something to do with the firewall...or some service that's not Checked to handle connections based on domain/home/public policies.
I tried no proxy option at both office and home network.
At home, "Check Update" works fine, but getting the error you mentioned with office network.
To avoid this error, you need to provide the proxy details from your office IT administrator.
It may be an also problem for VPN connected users. Try to disconnect and check for updates it will work. It worked for me

Resources