Specify location for android api for AVD Manager - android

Today, I decided to try Android Studio. When opening AVD Manager from the Tools > Android > AVD Manager menu on Android Studio, the list shows that the AVD named DroidBox fails because of "Unknown target android-16". I created that Virtual Device back when I used Eclipse for Android programming.
I have android-16 downloaded on my system (I know the path to the dir, and it has worked before), but apparently the location isn't being seen.
How can I tell AVD Manager where to find the directory?

you can set the path for same sdk that you were using with Eclipse. Just follow these steps:
File-> Project Structure->Android SDK location.
Under Android SDK location, browse for you sdk that you are using with eclipse. Yoy may need to re-start Android Studio to take effect! i m using A.S 0.8.6!

Even I had faced the same problem. Tools -> AVD Manager -> Create Virtual Device just adds the Virtual device. Underlying SDK (=~ Android OS selected while creating the Virtual device) should be separately installed.SDK can be installed from Tools -> SDK Manager.

Android Studio looks for different directories than Eclipse. From Android Studio, run the SDK Manager and verify that marks API 16 as installed. If not just install it and that should work

Related

How can i add Android Device under V4.4 to visual studio 2017 emulator Xamarin

Hi i need to run my app on android 4.0.3 device and i downloaded them from vs sdk manager
but when i want to create a new device 4.0.3 version , in the Os list is not displayed.
how can i create a device other than default device ?
How can I add Android Device under V4.4 to visual studio 2017 emulator Xamarin
As #FabriBertani said, you could try use Genymotion instead. But when I use Genymotion on my side, I could only create the emulator that version is higher than 4.1.1:
i want to create a new device 4.0.3 version
So if you need to create an android 4.0.3 version simulator, I still recommended you to use the Android Studio, the Official IDE for Android. It will be quite simple to create such a simulator.
When you install Android Studio, you could you could use the already installed Android SDK, because there's no need for you to download it again. I have written an answer about it and I write it here again:
Install Android Studio, the Official IDE for Android.
Create a blank project and open it.
change Android SDK Path.
a. Go to File -> Project Structure
b. Change the SDK location to your Visual Studio SDK Location
I. Default Xamarin Android SDK Location is C:\Program Files (x86)\Android\android-sdk, you could find it in VS : Tools -> Options -> Xamarin -> Android Settings
II. There is a problem when you change the SDK Location: cannot contain whitespace. You could open CMD as Administrator and type: mklink /J C:\Program-Files-(x86) "C:\Program Files (x86)", like this.
III. Then you could change the SDK Location, effect.
Effect:
In Android Studio, click Tools -> AVD Manager -> Create Virtual Device -> choose a device definition -> click Next:

Windows update apparently deleted Android SDK files from Visual Studio

I just restarted my Windows 10 machine to install some updates, and afterward I started getting this error in Visual Studio:
Error Xamarin.Android for Visual Studio requires Android SDK.
Please install it or set Android SDK path on Tools->Options->Xamarin->Android Settings menu. 0
Which I thought was weird, since I'd never run into any issues with my Android SDK before. So I went to Tools->Android to open the SDK manager, but all the options were grayed out and not selectable. Here's a screenshot:
So I did a little research, and this post told me to manually start my SDK manager with the .exe file. So I searched my files for the SDK manager, but when I clicked to open it, I got this error message:
The item that this shortcut refers to has been changed or moved.
Would you like to remove this shortcut?
And I got the same error for the Uninstall Android SDK Tools and AVD Manager shortcuts. So it seems that all my Android SDK files were for some reason deleted during my Windows updates.
Then I noticed that under Visual Studio Tools->Options->Xamarin->Android, the "Android SDK Location" was empty. Screenshot:
So then I downloaded Android Studio from the official site, found the location to the .exe file, and then copy-and-pasted the path into the "Android SDK Location" field, and clicked "OK". But the field wasn't saved. No matter what I do, when I open Options, the "Android SDK Location" field is always empty.
I have no idea how to proceed. Anyone have any ideas?
UPDATE
I ran Visual Studio Installer, clicked Modify, and under "Individual Components", it tells me that I already have the latest Android SDK setup (API level 25) installed. Do I need to install something other than that? Screenshot:
Better to Update Visual studio from Visual studio Installer
When you Load Visual Studio Installer, select repair option...
it will fix all issues...
First, Android SDK Location path is Android SDK path not .exe file path.
Second, check the path C:\Program Files (x86)\Android\android-sdk which is default path to store Android SDK by Visual Studio to see whether it exists. In my computer like this:
If it doesn't exists, it maybe have been deleted by your computer update process.
Why the "Android SDK Location" field is always empty is because the path is wrong.
You can also get Android SDK path with the Android Studio which you have downloaded:
Android Stuido -> File -> Settings -> Appearance & Behavior -> System Settings -> Android SDK, then copy-and-pasted the Android SDK Location path to Visual Studio. Find it like this in Android Studio:

Android studio 2.3 canary missing 'Launch Standalone SDK Manager' option in 'SDK Manager'

I inadvertently accepted android studio's upgrade suggestion to 2.3 (canary), although I had always had it set to check for the developer channel, not canary, somehow that got switched. Now I no longer have a 'Launch Standalone SDK Manager' option in my 'SDK Manager' window.
I liked the standalone manager for various reasons, including that it suggested what needed to be downloaded and upgraded. The regular sdk manager lists a lot of things I expect I don't need like 'CMake', 'LLDB', 'Constraint Layout for Android', 'Solver for ConstraintLayout', 'Google Play APK Expansion Library' ('Google Play APK Expansion Library rev 3' is already installed, so do I need this too?), etc.
Is the standalone sdk manager unavailable for 2.3 canary 2, or is there something more I need to do to get it?
I also have updated to the Canary version 2.3 and I'm amazed that they took it away there.. but you can still start it via the SDK Manager.exe located in your sdk folder
C:\Users\You\AppData\Local\Android\sdk
Present:Today when i was trying to launch, the terminal says, The android command is no longer available.
For manual SDK and AVD management, please use Android Studio.
Past:
I also face the problem after updating to Canary version 2.3 on my mac.. On Mac or Linux, open a terminal and navigate to the tools/ directory in the location where the Android SDK is installed, then execute android sdk
or for only mac user go to folder located in
/Users/your mac account name/Library/Android/sdk/tools
and double click android to Launch Standalone SDK Manager
My Advice: Stop Searching for Launch Standalone SDK Manager and get use to be of android studio SDK manager and just choose the Show Package Details for more detailed description like Launch Standalone SDK Manager.
With the 2.3 Canary update, when using SDK Manager.exe or tools/android.bat, no manager is opened. However tools/android.bat give a pretty good answer to why it is not working:
The "android" command is no longer available.
For manual SDK and AVD management, please use Android Studio.
For command-line tools, use
tools\bin\sdkmanager.bat and tools\bin\avdmanager.bat
We can still use command-line tools, but no more standalone SDK manager.
Yes, "Launch Standalone SDK Manager" option in Android Studio V2.3 is not available, But you can still start it via SDK Manager.exe located in your sdk folder.
c:\Users\You_User_Account_Name\AppData\Local\Android\SDK Manager.exe
Enjoy Android Studio with new features.
I just received an official response from AOSP -
Project Member #1 uchid...#google.com
deprecated feature , please check latest stable version Android 2.3
The link is now gone, and it is intentional.
Yes the standalone sdk manager option is missing in Android Studio 2.3. Get yourself used to the sdk manager available in Android Studio settings.
Also if you are installing Android Studio from scratch, you will not be available to find Sdk Manager.exe from C:\Users\You\AppData\Local\Android\sdk or anywhere you install it.

Unable to create AVD with android sdk on Mac OS

I have installed Android Studio and JDK1.8 on Mac OS. I followed the instructions and created a new application with API 15 as minimum sdk.
I tried to create an AVD from AVD manager to test my application by selecting create new virtual device->nexus 6->lollipop 22 armeabi_v7a android 5.1.1 as target. When I click finish, it takes me back to the first AVD manager screen without giving any errors and AVD is not created.
Where could be the problem?
First you need to download the SDKs you are interested in from Android Studio Tools menu -> Tools -> Android -> SDK Manager or from the menu bar.
Don't forget to install the intel x86 emulator accelerator haxm from the SDK Manager - this will speed up significantly your android virtual device.
Then proceed as you mentioned in your question.
You can find more information here.
EDIT : From the comments your OS X version is 10.7.5 and Android Studio runs on 10.8.5 so you either :
Update your OS X installation
Install Eclipse and use the ADT plugin from google on your current configuration.

Android SDK setup help

Im having some weird issues setting up the SDK in eclipse, when i go to make a project i cant select anything in the build target. I have installed the eclipse plugin and the SDK but im not sure whats going on. Some help please, thanks!
You are not able to see the build target because you have not installed any Android virtual device in your AVD Manager.
AVD Manager is located at the same place where SDK Manager resides(in windows startmenu-programs-android SDK Tools)
Open AVD Manager with administrator privilege and install any build target you choose. Then try in the eclipse . It will work fine.

Categories

Resources