如何安装独立的Android SDK,然后将其添加到Windows上的IntelliJ IDEA? [英] How do I install the standalone Android SDK and then add it to IntelliJ IDEA on Windows?
问题描述
这是显示我从哪里下载SDK的网页:
提取.zip文件夹,然后打开' tools '文件夹,我可以在emulator.exe,mksdcard.exe和一系列.bat文件中看到(如下所示)。
如何继续?
在IntelliJ IDEA 2017.1和2017.2中,从头开始设置Android SDK很复杂。我建议安装Android Studio并在那里管理SDK平台。这个问题将在最近的更新中解决。
如果你足够勇敢,仍然可以使用 tools \bin\sdkmanager.bat
命令行工具。不推荐使用SDK Manager的GUI版本(SDK下载中不再提供)。可以通过
您还可以访问Android SDK配置界面,下载其他组件并执行更新(就像在Android Studio中一样):
This is the webpage showing from where I downloaded the SDK:
On extracting the .zip folder, and opening the 'tools' folder, all I can see in an emulator.exe, mksdcard.exe and a host of .bat files (as shown below).
How do I proceed?
In IntelliJ IDEA 2017.1 and 2017.2 setting up Android SDK from scratch is complicated. I would recommended to install Android Studio and manage SDK platform there. This problem will be addressed in one of the nearest updates.
If you are brave enough, it's still possible to set it up without Android Studio using the tools\bin\sdkmanager.bat
command line tool. GUI version of the SDK Manager is deprecated (no longer available in the SDK download). Standalone SDK can be downloaded here. Look below the Get just the command line tools section.
So, you will need to install at least one platform version.
First run the update to ensure you have the latest tools:
sdkmanager --update
Now you can list the packages available for installation:
sdkmanager --list
To install Android Platform:
sdkmanager platforms;android-26
To install the current build tools version (optional):
sdkmanager build-tools;26.0.0
At this point you should be able to add Android SDK configuration for the installed platform version in IntelliJ IDEA like this:
You will also have access to Android SDK configuration UI where you download additional components and perform updates (just like in Android Studio):
这篇关于如何安装独立的Android SDK,然后将其添加到Windows上的IntelliJ IDEA?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!