Unable to setup Android SDK on macOS Catalina? - android

While installing Android studio, I got no path for Android sdk says "android sdk is missing" and it pointed to default path /Users/{username}/Library..
When I go physically to the location, cannot locate sdk.
It's my corp device and I cannot setup android studio.
Tried downloading command line tools from below:
https://developer.android.com/studio?pkg=tools
but not sure how sdk folder looks like. Need guidance
NOTE: I have ksh (.kshrc) file on my device.

If You are looking for installing only android SDK. You can follow any of the methods below.
Install the Android studio (Manually)
download without android SDK Android Studio bundled zip folder and install the same from here - https://developer.android.com/studio#downloads
User Homebrew and install android sdk - Easiest and preferred option!!!
you can use Homebrew to install the Android SDK.
Install Homebrew from here (just follow the commands via MAC Terminal) - https://brew.sh/
Once you have installed HomeBrew run the following commands:
More details here - https://formulae.brew.sh/cask/android-sdk#default
brew tap homebrew/cask
brew install --cask android-sdk
This will install the Android SDK tools in
/usr/local/Cellar/android-sdk/<version number>
Use this path to update your SDK path in android studio as shown in the post above. Hope this helps.

Go to File -> Project Structure and check the Android SDK Location:
Then Android Studio -> Preferences -> System Settings -> Android SDK (just type sdk in the search bar).
Download SDK Platforms and SDK Tools:

Related

Android Studio - SDK Manager

When I type 'android' at my command prompt I have the following message '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'.
What do I do?
The standalone GUI based SDK manager (and AVD manager) is now gone!
You either have to use the standalone command at <SDK_ROOT>\tools\bin\sdkmanager or
the inbuilt GUI SDK manager within the Android Studio found at: Tools>Android > SDK Manager
Not sure what has caused this but there is a workaround you just need to download and replace the tools folder in your Android SDK with an earlier version and it will work again.
Follow these steps:
Click the link below for your OS and download a new Android SDK tools folder:
(Mac) https://dl.google.com/android/repository/tools_r25.2.3-macosx.zip
(Windows) https://dl.google.com/android/repository/tools_r25.2.3-windows.zip
Goto your Android SDK folder (on Mac its: /Users/username/Library/Android/sdk) then find the folder named "tools" and delete it
Unzip and copy the tools folder you downloaded from the link to your Android SDK folder
That's it.. You should now be able to run the android command from the terminal again
I had to navigate to and run the following
cd /Users/<username>/Library/Android/sdk
tools/bin/sdkmanager --licenses

Android Studio doesn't start up, saying SDK components were not installed

I have download Android Studio packed with the full SDK (build-tools, platforms, everything). Installed the studio (64-bit) on Drive C and the SDK in "AppData/local/Android/android-sdk" folder as specified by the installer itself.
Now when I run the Studio (with admin permissions) it still attempts to download everything, as if no SDK components were present on my PC.
Is there a way to tell the Studio where the SDK is? Or I have to re-download it all?? (I already have everything mentioned in the error message)
"The following SDK components were not installed: platform-tools, extra-android-m2repository, tools, addon-google_apis-google-21, build-tools-21.1.2, android-21, sys-img-x86-addon-google_apis-google-21, source-21,"
[The following SDK component was not installed: platform-tools]
I ran into the same issue and was able to solve it by updating the SDK from the command line.
Go to the location where your Android SDK was installed (possibly ~/Android/Sdk) and run:
./android update sdk --no-ui
There's no need to run it as root.
Then, on Android Studio, go on Configure -> Project Defaults -> Project Structure, and then point Android SDK Location to wherever it is located.
step1: just copy 21.1.2 folder and paste with name 21.1.1
step2 : open 21.1.1 folder and open "source properties" file with any text editor( notepad)
step3 : change pkg.Revision=21.1.1 save it
step 4: android studio
sudo chown -R <username> .android
as mentioned here, android sdk updater stores a copy of some xmls in .android/cache
So after you have set the permissions, the updater can store necessary xmls and download missing sdk components

SDK Manager Android Studio OS X

How do you open SDK Manager on the latest Android Studio in OS X? It appears grayed out in the initial screen and it seems I don't have any SDK installed...
Close all open projects so you get the opening screen.
Choose Configure -> Project-Default -> Project Structure
Then set the path to your SDK and JDK, respectively.
Mine are:
SDK: /Users//Development/android-sdk
JDK: /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home
If you are on OSX, your JDK might be similar, your SDK will be wherever you put it.
Since the SDK doesn't come with Android Studio, you have to install it manually.
You can use brew with brew install android-sdk and then you can open it via android (All done in the terminal)
For me, I found that the android binary was missing from the Studio.
So I downloaded the SDK, and moved it in.
Path is as given by #Cory, /Users/<user>/Library/Android/sdk

how to install android studio 0.8.14

I am trying to install android studio 0.8.14 from this page.
I download the zip file and unzip it into a directory and the run studio.exe ( as explained in documentation on web site)
but when I run studio.exe, I found that android sdk was not installed.
what is the correct procedures to install android studio on windows?
Go to this link https://developer.android.com/sdk/index.html?hl=i, and look to the section called "GET THE SDK FOR AN EXISTING IDE", download that to a known location and then use that folder when android studio asks you to point to sdk location
Download the SDK from here.
This link can be found on Android SDK | Android Developers.
after downloading the sdk , open studio64.exe ->configure->project default->project structure-> set android SDK location to that of standalone sdk installation directory [by default its "C:\Program Files (x86)\Android\android-sdk"].
note- start sdk manager as administrator. else it wont do anything

How to determine the version of android SDK installed in computer?

How to determine the version of Android SDK installed in my computer?
<Program files>\Android\Android-sdk\platforms\<platform SDK's>
On a 32bit machine:
"<Program files>" will be \Program Files\
On a 64bit machine:
If you installed the 32bit ADT, "<Program files>" will be \Program Files (x86)\
If you installed the 64bit ADT, "<Program files>" will be \Program Files\
Type in android list target into your command line to see what android API you are using.
C:\ <path to android sdk> \tools\source.properties (open with notepad)
There you will find it.
Android Studio is now (early 2015) out of beta. If you're using it as your development platform, the SDK Manager is probably the easiest way to see what's available. To start the SDK Manager from within Android Studio, use the menu bar: Tools > Android > SDK Manager.
This will provide not only the SDK version, but the versions of SDK Build Tools and SDK Platform Tools. It also works if you've installed them somewhere other than in Program Files.
You can check following path for Windows 10
C:\Users{user-name}\AppData\Local\Android\sdk\platforms
Also, you can check from android studio
File > Project Structure > SDK Location > Android SDK Location
open android sdk->click on tools tab->about and u get the entire details!
In the case of Linux, You get the version of Android SDK using sdkmanager.
your_path/android-sdk/tools/bin/sdkmanager --version
in my case
/var/lib/jenkins/android-sdk/tools/bin/sdkmanager --version
While some responses have shown how to get the versions of the installed Android SDKs and various Android SDK related tools using the Android SDK Manager GUI, here's a way to get the same information from the command line:
%ANDROID_HOME%\tools\bin\sdkmanager.bat --list
You can redirect the output to a file to ease review and sharing.
Note: In my corporate environment, I also had to use the --proxy, --proxy_host, and --proxy_port command line options. You may need to use them as well.
I develope cross-plateform mobile applications Using Xamarin integrated in Visual Studio 2017.
I prefer to install and check all details of Android SDK from within the Visual Studio 2017. This can be found under the menu TOOLS -> Android -> Android SDK Manager.
Bellow is the Visual representation of the Adroid SDK Manager.
If you prefer to manage from UI, type android in command windows which will open the Android SDK Manager. Or you can directly open from C:\Program Files (x86)\Android\android-sdk\SDK Manager.exe
Create a Batch file (.bat) in Windows with the following command in it:
%ANDROID_HOME%\tools\bin\sdkmanager.bat --list && pause
NOTE: Using && pause is necessary to be able to review the information, once it is listed. If not used, the batch file will simply run, show the information in just mere few seconds and exit right away.

Categories

Resources