idea 生成sdk_如何安装独立的Android SDK,然后将其添加到Windows上的IntelliJ IDEA?

在IntelliJ IDEA 2017.1和2017.2版本中,从头设置Android SDK较为复杂。建议通过安装Android Studio来管理SDK。但如果你选择不使用Android Studio,可以使用toolsinsdkmanager.bat命令行工具手动设置。首先运行sdkmanager --update更新工具,然后通过sdkmanager --list列出可安装的包,接着安装Android平台(如:sdkmanager platforms;android-26)和构建工具(如:sdkmanager build-tools;26.0.0)。最后,在IntelliJ IDEA中配置Android SDK。
摘要由CSDN通过智能技术生成

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):

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值