- Где установить Android SDK на Mac OS X?
- 11 ответов
- How do I open the sdk manager in the Mac
- 9 Answers 9
- 2019 Updated Answer
- agrcrobles / android_instructions_29.md
- Location of the android sdk has not been setup in the preferences in mac os?
- 20 Answers 20
- Where to install Android SDK on Mac OS X?
- 13 Answers 13
Где установить Android SDK на Mac OS X?
где должен быть установлен Android SDK на Mac OS X?
11 ответов
теперь android-sdk переносится с homebrew/core до caskroom/cask .
и установить android-sdk используя
вам придется добавить ANDROID_HOME в профиле (.zshrc или .bashrc и)
самый простой (и стандартный) способ установить Android SDK под OS X-использовать brew .
brew install android-sdk
Если у вас нет домашнего пива,вот как его получить.
это установит Android SDK в /usr/local/Cellar/android-sdk/ и, на данный момент, это лучшее место для его установки.
мое личное предпочтение, чтобы положить его в
/opt/local/android-sdk-mac или / Developer/android-sdk-mac последнее, где Xcode и все инструменты Apple Dev хранятся.
когда я установил Android Studio 1.0, он оказался в
по умолчанию путь установки Android sdk —
вы можете установить android-sdk по-разному
доморощенного
Установите brew с помощью команды изbrew.sh
установить android-sdk используя
теперь android-sdk будет установлен в /usr/local/opt/android-sdk
если вы установили Android studio после сайт,
android-sdk будет установлен в
Я думаю, что эти значения по умолчанию имеют смысл, и лучше придерживаться его
от http://developer.android.com/sdk/index.html, кажется, что вы можете установить SDK в любом месте, пока вы
- » выполните инструмент android в /tools/ папка»
- добавить /tools каталог к вашему системному пути
У меня просто есть мой в MyUser/Documents/Development . Я единственный, кто использовал мой Mac, поэтому мне не нужно было беспокоиться о том, чтобы сделать его доступным для всей системы.
Я поставил свой в / Developer / SDKs, я должен был аутентифицироваться, чтобы сделать это. но так как нет консенсуса, я думал, что это звучит как место, которое я бы запомнил.
Я закончил тем, что разместил свой at
/sdks/android-sdk-mac_x86. Мне нравится хранить все мои SDK в одном месте, и для меня папка sdk в моем домашнем каталоге имеет наибольший смысл.
Я тоже играл с этим. Сначала он был у меня в папке «документы», но я решил, что это не имеет «философского» смысла. Я решил создать каталог Android в своей домашней папке и разместить там Eclipse и Android SKK.
Источник
How do I open the sdk manager in the Mac
How do I open the sdk manager in the Mac system to download the missing files for android studio
9 Answers 9
Just cd into the installed SDK path like this
Where is your username to the MAC
OLD ANSWER
where is your username to the MAC
For example in my own case, executing the following opens the SDK manager for me
/tools/bin && ./sdkmanager and it will work fine. From there, just follow Android documentation with the desired comments. E.g.: cd /Users/ /
/tools/bin && ./sdkmanager —list
./android is not available now.
The «android» command is deprecated. For manual SDK, AVD, and project management, please use Android Studio. For command-line tools, use tools/bin/sdkmanager and tools/bin/avdmanager
We could use ./SDK_HOME/tools/bin/sdkmanager instead.
You can open the SDK manager in the terminal: android -v
I’m using Android Studio 3.4.2
The SDK Manager does not show up under the Tools menu, but it is available as an icon on the upper right hand menu. It’s a cube with a blue arrow pointing down.
It can be found inside Android Studio. See here.
2019 Updated Answer
This thread pointed me in the right direction and hope this answer will help other recent visitors like me:
Источник
agrcrobles / android_instructions_29.md
A high level overview for what I need to do to get most of an Android environment setup and maintained on OSX higher Catalina and Big Sur with and without Android Studio been installed.
Considering the SDK is installed under /Users/ /Library/Android/sdk folder which is the Android Studio preferred SDK location, but it works fine under /usr/local/share/android-sdk as well, which is a location pretty much used on CI mostly.
Open JDK 14 works fine with gradle 6.x
Preferred: To install the JDKs 8 ( LTS ) AdoptOpenJDK:
Alternative: Do not follow this step if followed the step before
Be sure JAVA_HOME is exported on your bash profile or zshrc depending the shell in usage.
Without Android Studio
Or try Command line tools | Android
Use Command line tools or SDK Manager
Quick reminder: Have as many build tools as you want, have a single one platform tool with backwards compatibility :=)
Download and Install Command line tools for mac ( not the android studio unless I need it )
Use Homebrew to install Android dev tools: Note that Java8 is tricky since licence changed: https://stackoverflow.com/questions/24342886/how-to-install-java-8-on-mac
Install all of the Android SDK components (you will be prompted to agree to license info and then this will take a while to run):
If you need to have openjdk first in your PATH run: echo ‘export PATH=»/usr/local/opt/openjdk/bin:$PATH»‘ >>
For compilers to find openjdk you may need to set: export CPPFLAGS=»-I/usr/local/opt/openjdk/include»
Be sure Intel Hardware Accelerated Execution Manager (HAXM) is properly installed.
HAXM is a cross-platform hardware-assisted virtualization engine (hypervisor), be sure HAXM is properly installed.
SDK preferred location
sdk can be installed on /Library/Android/sdk or /usr/local/ to be sure check it by
All locations are valid ones from what I am aware of 🙂
Suggested: You will have to add the ANDROID_HOME to the profile configuration settings either on .zshrc, .bashrc or .bash_profile
If emulator doesn’t run, i am here to remind you to provide access into System Preferences — Security & Privacy
Источник
Location of the android sdk has not been setup in the preferences in mac os?
I am installing the Android SDK along with Eclipse in mac os. Whenever I try to start a new project development I get an error location of the android sdk has not been setup in the preferences
How do I resolve this problem?
20 Answers 20
Hi try this in eclipse: Window — Preferences — Android — SDK Location and setup SDK path.
I got this message after updating eclipse platform-tools and tools from the SDK Manager and then it was impossible to update the SDK path because I had an old version of ADT plugin.
Whenever you get this error message in a prompt right after eclipse loaded, you should do the following:
- Go to Help — Install new software
- Click on Available software sites
- Delete the link http://dl-ssl.google.com/android/eclipse/
- Reboot eclipse
- Go to Help — Install new software
- In the box «Work with» add http://dl-ssl.google.com/android/eclipse/ again
- Install ADT and accept whatever that prompts.
This is how my problem with this message got solved.
I saw this error after updating the Android SDK to r17. The solution was to go to Help -> Update and get the latest version of the Android SDK to match.
I experienced this problem and fixed it by updating to the latest Android SDK Tools which in my case was 20.0.3
I am running Mac OSX Lion 10.7.4
If ever you encounter errors while updating the SDK Tools try deleting
http://dl-ssl.google.com/android/eclipse/ from the «Available Software Sites» in Eclipse, and adding it again.
If you have not installed plugin for eclipse, install it first.
If the plugin is installed, setup preferences: «Eclipse»>»Preferences. «, in left column choose «Android»(do not expand list, just choose root element), and first preference will be «SDK Location».
I’ve had the same problem on Eclipse Juno.
No «Welcome page» appeared, I could not create a project, compilation didn’t work and «Graphical layout» didn’t work.
I have fixed it: Window > Preferences > General > Startup and shutdown: Check «Android development toolkit»
Of course you have to be configured this: Window — Preferences — Android — SDK Location and setup SDK path.
Simply create this folder:
and then from Window -> Preferences -> Android , put this path:
I had the same problem when I was trying to upgrade from ADT 20.0.x to ADT 23.0.x on Eclipse Indigo.
To fix the issue, I had to uninstall the ADT plugin (remove feature) from Eclipse, then reinstall the newer versions.
This maybe done by going to Help->Install New Software . Then at the bottom of the page, click What is already installed?
All what is left now is to install the newer versions as usual from help->Install New Software .
there are many things which can cause this error. For example, I imported google api from the android SDK Manager and that is when I got this same error. Eclipse broke down on me. I could not even create a new android project.
To fix this, I went to help — Install New Software. — from the «work with» drop-down box I selected http://dl-ssl.google.com/android/eclipse/ — I then check marked «Developer Tools» and hit the Next button. I then followed the prompts and it basically did a re-install. It took less than 5 minutes. That resolved the error.
Now Im back up and running, and I got the lastest version of Eclipse.
i tried everything/. but only this thing worked for me:
To fix this, I went to help — Install New Software. — from the «work with» drop-down box I selected http://dl-ssl.google.com/android/eclipse/ — I then check marked «Developer Tools» and hit the Next button. I then followed the prompts and it basically did a re-install. It took less than 5 minutes. That resolved the error.
Now Im back up and running, and I got the lastest version of Eclipse.
Thanks a lot Nadir
Hope this helps:
Step 2.) Extract downloaded zip file in appropriate location. In this tutorial, I have downloaded and installed it under program files.
Step 3.) Right click on eclipse.exe file and send shortcut to desktop.
Step 4.) Double click on eclipse shortcut from desktop and select appropriate location to create your workspace.
Step 5.) Navigate to Window > Preferences. This should open Preferences window.
Step 6.) On the left hand side page expend “Java” and click on “Installed JREs”
Step 7.) Click Add. It will open “Add JRE” dialog. Select “Standard VM” and click Next.
Step 8.) For “JRE home” select “Direcotry…”. This will open “Browse for folder” dialog. Select the location where your JDK is installed. NOTE: MAKE SURE THAT ITS x64 AS WELL, AS WE ARE USING 64-BIT VERSION OF ECLIPSE.
Step 9.) If you have selected proper location, it will show JDK version in JRE name and it will display “JRE system libraries”.
Step 10.) Click finish. Now your JDK is properly pointed as “Installed JREs”.
Step 11.) Select checkbox unchecked before name of your JDK name.
Click ok and you’re done. You are now using JDK as “Installed JREs”
Источник
Where to install Android SDK on Mac OS X?
Where should the Android SDK be installed on Mac OS X?
/Library/Android/sdk/. Where else would you possibly want it than there — and that’s the default installation location.
/.android-sdk/ by default.
13 Answers 13
The easiest (and standard) way to install Android SDK under OS X is to use brew .
brew install android-sdk
If you do not have homebrew, here’s how to get it.
This will install Android SDK into /usr/local/Cellar/android-sdk/ and, at this moment, this is the best location to install it.
In homebrew the android-sdk has migrated from homebrew/core to homebrew/cask .
and install android-sdk using
You will have to add the ANDROID_HOME to profile (.zshrc or .bashrc)
If you prefer otherwise, copy the package to
When I installed Android Studio 1.0 it ended up in
folder, then drag & drop the SDK directory onto the file browser.
My personal preference is to put it in
/opt/local/android-sdk-mac or / Developer/android-sdk-mac the latter being where Xcode and all the Apple Dev tools are held.
By default the android sdk installer path is
You can install android-sdk in different ways
homebrew
Install brew using command from brew.sh
Install android-sdk using
Now android-sdk will be installed in /usr/local/opt/android-sdk
If you installed android studio following the website,
android-sdk will be installed in
I think these defaults make sense and its better to stick to it
Источник