Android Studio - Cannot see an option to create AVD or SDK Manager - android-studio

This is my first time using Android Studio, and i probably am missing something silly.
On following the React Native getting started guide - https://facebook.github.io/react-native/docs/getting-started.html , I remember i did setup the Android SDK, HAXM and virtual device. But i don't see any such options on my Android Studio.
Some screenshots -
AVD is not present under Tools -
On Help>Find action , there is no "sdk manager"
Appearance & Behavior → System Settings does not have "Android SDK" either.
Also i see this message at the bottom. Im not even trying to save anyting, this just popps up when i start Android Studio -
I'm on a windows machine currently, the project "AwesomeProject" is created using react-native cli.. and i've tried reinstalling Android Studio too. Your help is appreciated.
Thanks

If you have set android home and path in your bash then you can access the sdk manager and avd from the terminal.
For avd - 'android avd'
For sdk manager - 'android'

It seems something broke when i closed the amulator via the windows task manager. What i did then was manually delete android studio (shift+delete).. then installed Android Studio normally, and the SDKs.
Now things work fine.

Related

Android Studio shows " (Unavailable)" for Android Virtual Device choice

I think the image is not clear but when I trying to choose Android virtual device they write next to it it's unavailable.
How can I solve this?
This problem shows up in Android Studio setup in SDK component Setut:
It's just a warning, after completing the wizard the Android Emulator will be downloaded and the AVD available.

Android Studio shows that SDK installed, but it not installed

I had a problem with Android Studio, then I try to delete all related files & folders, and remove Android Studio, to install all things again. I follow: How to completely uninstall Android Studio from windows(v10)?
Now, when I install Android Studio (Arctic Fox 2020.3.1 Patch 3).
It shows that Android Sdk (Installed), and request me to provide sdk location.. So, there are No installed sdk, I deleted all things, cleaned registry, BUT Android Studio still say its installed!
What I can do, to convince Android Studio that I want to install SDK also!
After hours of search here & there, My friend found that youtube video in Arabic, who described the problem: https://www.youtube.com/watch?v=oRT70VRKsq4
After 4.2.1 update of Android Studio, If your windows language is Arabic, and regional settings (التنسيق الإقليمي وتنسيق الأرقام في ويندوز) is Saudi Arabia (in Arabic).
The Android Studio will show that: SDK installed, & AVD will not work currently, (after application runs on Emulator, the debugger will not connect to app, and no logs will appear).
Solution:
Change regional settings to English (US).
in Arabic:
غير المنطقة إلى الإنجليزية،
from Microsoft support:
Change the Windows regional settings to modify the appearance of some data types
Notice: changing Numbers only to 123456790, will not solve this problem.
Then, all things will work currently, Android Studio will show that SDK not installed & install it, and will show all platform tools, & more.

"Unable to locate adb" popping up in Android Studio [duplicate]

This question already has answers here:
Error:Unable to locate adb within SDK in Android Studio
(31 answers)
Closed 4 years ago.
I have been trying to test my app on real device. I keep receiving error message that "unable to locate adb". I have the USB driver for my phone installed. Thank you for the help. The snap shot is shown below.
on your android studio at the top right corner beside the search icon you can find the SDK Manager.
view android SDK location (this will show you your sdk path)
navigate to file explorer on your system, and locate the file path, this should be found something like
Windows=> c://Users/johndoe/AppData/local/android (you can now see the sdk.)
Mac=>/Users/johndoe/Library/Android/sdk
check the platform tools folder and see if you would see anything like adb.exe (it should be missing probably because it was corrupted and your antivirus or windows defender has quarantined it)
close Android Studio, open the Task Manager and finish the ADB.exe process if it's running and then delete the platform tools folder
go back to android studio and from where you left off navigate to sdk tools (this should be right under android sdk location)
uncheck android sdk platform-tools and select ok. (this will uninstall the platform tools from your ide) wait till it is done and then your gradle will sync.
after sync is complete, go back and check the box of android sdk platform-tools (this will install a fresh one with new adb.exe) wait till it is done and sync project and then you are good to go.
If you are still having problems, you may need to set the Project SDK.
I hope this saves someone some hours of pain.
if using avast go for virus chest,will find adb,restore it by clicking right button..thats all,perfectly works
open Studio settings-->System settings --> Android SDK --> select SDK tool tab -->> select "Android SDK platform tool" and install
(I am using Android Studio 3.0.1)
I downloaded "SDK Platform-Tools" from
https://developer.android.com/studio/releases/platform-tools
Copied 'adb.exe' to C:\Users\user\AppData\Local\Android\Sdk\platform-tools.
Then I got no errors when running the app.
I also added C:\Users\user\AppData\Local\Android\Sdk\platform-tools\adb.exe to the exception list of my anti-virus tool
I use android studio in Windows 7 and i have AVG for antivirus. The first time you launch adb, AVG prompts you to add avg.exe in antivirus vault. If you accept, then you android studio dont have access to run adb.exe. So open
avg >> options >> Virus Vault >> Restore (select the adb file)
In Android Studio, Click on 'Tools' on the top tab bar of android studio
Tools >> Android >> SDK Manager >> Launch Standalone Sdk manager
there you can clearly see which platform tool is missing , then just install that and your adb will start working properly.In Image You Can see every thing
Due to some problem my adb.exe, was lost. My space of work suffered an electrical energy interruption, after that, I could not run or compile android programs.
Adb.exe is a file which should be located in your [android directory]/sdk/platform-tools. In my case, the file dissapeared, however the platform-tools was ther. My solution was as follows:
I changed the name directory of [android directory]/sdk/platform-tools towards platform-tools_OLD, in order to hide it for android studio without erase it.
In [android directory]/sdk there is a file SDK Manager.exe, ... I launched it.
A window of "Android SDK Manager" is shown, then, in the Tools folder I chose "Android SDK Platform Tools" and then, Install packages.
Enter to Android Studio
This was well for me
Else this will helps you
The ADB is now located in the Android SDK platform-tools.
Check your [sdk directory]/platform-tools directory and if it does not exist, then open the SDK manager in the Android Studio (a button somewhere in the top menu, android logo with a down arrow), switch to SDK tools tab and and select/install the Android SDK Platform-tools.
Alternatively, you can try the standalone SDK Manager: Open the SDK manager and you should see a "Launch Standalone SDK manager" link somewhere at the bottom of the settings window. Click and open the standalone SDK manager, then install/update the
"Tools > Android SDK platform tools".
If the above does not solve the problem, try reinstalling the tools: open the "Standalone SDK manager" and uninstall the Android SDK platform-tools, delete the [your sdk directory]/platform-tools directory completely and install it again using the SDK manager.
Hope this helps!
I had the same problem, and I solved it by doing:
(You should be connected to the internet)
click the logo of the SDK Manager
click Launch StandAlone SDK Manager (wait a moment)
if the dialog of the SDK manager shows, you click cexbox [Tools] and Install all packages
if the download is finished, you restart android studio and boot again..
After that, it should work.
Got it to work go to the local.properties file under your build.gradle files to find out the PATH to your SDK, from the SDK location go into the platform-tools folder and look and see if you have adb.exe. If not go to http://adbshell.com/downloads and download ADB KITS. Copy the zip folder's contents into the platform-tools folder and re-make your project.
I didn't need to update the PATH in the Extended Controls Settings section on the emulator, I left Use detected ADB location settings on. Hope this makes this faster for you !
I fixed this issue by deleting and inserting new platform-tools folder inside android sdk folder.
But it is caused by my Avast anti virus software. Where I can found my adb.exe in Avast chest. You can also solve by restoring it from Avast chest.
If you are using Anti-Virus, you can first check virus chest and restore from there. Otherwise, just go to your SDK Manager and install Android SDK Tools.
Check your [sdk directory]/platform-tools directory and if it does not exist, then open the SDK manager in the Android Studio (a button somewhere in the top menu, android logo with a down arrow), switch to SDK tools tab and and select/install the Android SDK Platform-tools.
Alternatively, you can try the standalone SDK Manager: Open the SDK manager and you should see a "Launch Standalone SDK manager" link somewhere at the bottom of the settings window. Click and open the standalone SDK manager, then install/update the
"Tools > Android SDK platform tools".
If the above does not solve the problem, try reinstalling the tools: open the "Standalone SDK manager" and uninstall the Android SDK platform-tools, delete the [your sdk directory]/platform-tools directory completely and install it again using the SDK manager.
Hope this helps!

Android Emulator Directory is Missing

I have recently come up with coding in dart and using flutter ...
after longtime spending for setting up SDK and stuffs for dart and flutter the only thing I need is an android studio set up and running SDK to it.
I'm actually running on Kali Linux and when I open an android studio I give it the directory file of the Android SDK but it says the folder is empty and there is no SDK (Sth like that ...). But I have downloaded the SDK recently... By the way when i click on next it warns me that the android emulator directory is missing!
Do the emulator or SDK needs a kind of root access !?
is there any way to connect the android SDK to vscode instead of an android studio?
Do android emulator only work on Ubuntu and no response for Debian based ?!
You don't need to download the SDK separately android studio will automatically install it, and you can even choose with version of the SDK you want.
If you haven't gotten that option when installing. Reinstall it form the website!
Not some stupid PPA or app market https://developer.android.com/studio

Standalone SDK Manager option in Android Studio 2.3

I have recently updated Android Studio from 2.2.3 to 2.3. Now can't see the option "Launch Standalone SDK Manager", which is useful to check for updates, google play services, etc.
It is a deprecated feature: https://code.google.com/p/android/issues/detail?id=235625 There is an option in Android Studio to "Show Package Details".
For manual SDK and AVD management, please use Android Studio.
For command-line tools, use tools/bin/sdkmanager and tools/bin/avdmanager
See also: https://www.reddit.com/r/androiddev/comments/5x6adh/android_studio_23_is_now_available_in_the_stable/deg48lj/
Even I had this issue when I updated to Android Studio 2.3
Click on Configure on the bottom left side
Select the Check Box to Show Package Details on the bottom left side
Move between the different tabs as per your requirements.
Can't working on Android Studio 2.3.3
On Mac :
/Users/YourAccount/Library/Android/sdk/tools
click android, you'll see standalone SDK manager
On Windows :
C:\Productivity\android-sdks\tools
double click on android.bat, standalone SDK Manger will be launched (see image below).
As the standalone sdk manager has been deprecated in favor of studio builtin sdk manager, there's a workaround to get back the standalone sdk manager.
Step1.
Download command line sdk tools for your platform:
http://dl.google.com/android/installer_r24-windows.exe
http://dl.google.com/android/android-sdk_r24-windows.zip
the links refer to an old distribution intentionally (see note below).
Step2.
Copy the SDK Manager.exe, tools/android.bat and tools/lib/archquery.jar into your existing sdk to which android studio is currently being pointed.
Step3.
Run SDK Manager or tools/android.bat and you will get back your beloved standalone sdk manager while having latest android studio > 2.3
Note
if you download latest command line tools for sdk, you wont be able to find the archquery.jar which is required to run the standalone sdk utility.
In this latest version (2.3.1 and 2.3.1+), after some digging, I found a faster way to open AVD and SDK: In the welcome interface of Android Studio, after pressing CTRL+SHIFT+A, a search box will jump out, then you can input "AVD", the AVD manager will come out. To open SDK is the same way.
However, AVD does not work in the welcome interface but SDK works. If you want to use CTRL+SHIFT+A to quickly open AVD you must create a new project and open AVD in the project interface.
If you are a Xamarin user, you can install the Xamarin Android SDK Manager, available on the Visual Studio Marketplace which will give you an interface like this:
NOTE: The Xamarin SDK manager has to be accessed from visual studio, but it will (should) work on both windows and mac
You can open it from your SDK path which in my case is
C:\Users\Akshay\AppData\Local\Android\sdk
Double click on SDK Manager.exe and it will open standalone SDK manager, refer attached Screenshot.

Resources