Missing platform-tools when installing Android Studio on Mac OSx

廉价感情. 提交于 2019-12-04 05:05:24

Okay, so I found a solution that works. This Stackoverflow thread was using command-line to update the SDK. I went into my tools/ and ran:

android update sdk -u

That pulled all the necessary SDK components from the server. Once it was done, I was able to point Android Studio to the standalone SDK folder and things seemingly work now.

I had the exact same problem on Mac OS X. Here is how I fixed it. Open terminal and use the following commands.

$cd ~/Library/Android/sdk/tools/

$./android update sdk --no-ui --filter 1

It will start the update of package in non-gui mode and ask for permission etc. and finally install well.

** I replied this on another thread as well. But I think this will help everybody because these are all related. I struggled much to find this solution. Depending on search keywords, people will end up in either of these threads.

Had similar issue (Android studio 3.0). Happened because I was behind a corporate proxy and the tools were not downloaded during setup.

Solution:

  1. Configure proxy in settings -> HTTP proxy
  2. Re-install Android Studio. proxy configuration will persist and the installation should succeed the second time (got additional window with the tools to download)

The android command that many of the above answers use is now deprecated, and may or may not work for recent installations.

I just solved a similar problem to the above (for me the platform-tools package installed, but the installation was missing several files) by running the commands:

cd ~/Library/Android/sdk
tools/bin/sdkmanager --uninstall platform-tools
tools/bin/sdkmanager --install platform-tools

The uninstall step may not be necessary for everyone.

I had the same issue today. Check if you have this folder in your SDK directory: [Android/sdk]/platform-tools

If not, you can grab it here: https://dl.dropboxusercontent.com/u/209338/platform-tools.zip

thuongle

If you have already installed Android SDK (following by Android wizard), then add this path /Users/your-user/Library/Android/sdk in the setting under Preferences -> Appearance & Behavior -> System Settings -> Android SDK

If not, please reinstall your Android Studio or download standalone Android SDK at link https://developer.android.com/sdk/installing/index.html?pkg=tools and follow the above step. Default installation Android SDK on your MAC is /Users/your-user/Library/Android/sdk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!