问题描述
我正在尝试设置IntelliJ IDEA来开发Android应用程序,我遇到了android sdk的问题。据我所知,我需要单独下载sdk。但我设法找到的是Android命令行工具,这显然不是我需要的东西。所以我的问题是如何获得IntelliJ IDEA的android sdk?
I'm trying to setup IntelliJ IDEA to develop android applications and I faced an issue with android sdk. As far as I know, I need to download the sdk separately. But I all I managed to find was Android command line tools which is obviously not something I need. So my question how can I get android sdk for IntelliJ IDEA?
推荐答案
与IDEA 2017.1.1相同的问题。我安装了tools_r25.2.3-windows.zip和。
我已经完成了:
Same problem I have with IDEA 2017.1.1. I installed tools_r25.2.3-windows.zip and managed to install them.I've done:
- 将其解压缩到C:\ Android \ android_sdk \
- 将tools文件夹重命名为tools-sdk
- 已执行
C:\ Android2 \ android_sdk \tools_inst \ bin> sdkmanager - 更新 -
准备好的文件my_file包含以下行:
- unzipped it to C:\Android\android_sdk\
- renamed "tools" folder to "tools-sdk"
- executedC:\Android\android_sdk\tools_inst\bin>sdkmanager --update
prepared file my_file with lines:
build-tools; 24.0.0
build-tools;24.0.0
平台; android-24
platforms;android-24
工具
模拟器
然后将IntelliJ IDEA文件夹C:\ Anroid\android_sdk作为Android SDK主文件夹。
Then gave IntelliJ IDEA folder C:\Android\android_sdk as Android SDK Home Folder.
然后IDEA要求安装一些东西额外。测试android项目编译并在仿真上运行(AVD Manager工作)。我不得不安装22平台和构建工具,因为android-24虚拟设备要求输入密码。
Then IDEA asks to install something additional. The test android project compiles and runs on emulation (AVD Manager works). I had to install 22 Platform and Build Tools though because android-24 virtual device asked for a password.
唯一的问题是我还没有带GUI界面的SDK Manager。
The only problem is I still have no SDK Manager with GUI interface.
这篇关于适用于Intellij IDEA的Android sdk的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!