我如何设置IntelliJ IDEA的Android应用程序? [英] How do I set up IntelliJ IDEA for Android applications?
本文介绍了我如何设置IntelliJ IDEA的Android应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何设置IntelliJ IDEA的Android应用程序?
How do I set up IntelliJ IDEA for Android applications?
推荐答案
我已经花了一天时间就试图把所有的作品一起,已经在数百个站点和教程,但他们都跳过琐碎的步骤。
I've spent a day on trying to put all the pieces together, been in hundreds of sites and tutorials, but they all skip trivial steps.
因此,这里的全指南:
So here's the full guide:
- 在下载和安装的的Java JDK (选择Java平台一>)
- 下载并安装 Android SDK中(安装建议)
- 在android的SD完成后,根据的Android SDK工具安装,打开 SDK管理器 (有时需要在管理员的权限才能打开)
- 选择一切,并标记接受所有并安装。
- 下载并安装的IntelliJ IDEA (社区版是免费的)
- 在等待所有下载和安装之类的东西来完成。
- Download and install Java JDK (Choose the Java platform)
- Download and install Android SDK (Installer is recommended)
- After android SD finishes installing, open SDK Manager under Android SDK Tools (sometimes needs to be opened under admin's privileges)
- Choose everything and mark Accept All and install.
- Download and install IntelliJ IDEA (The community edition is free)
- Wait for all downloads and installations and stuff to finish.
新项目:
- 运行的IntelliJ
- 创建一个新的项目(有一个<一个href="http://wiki.jetbrains.net/intellij/Developing_applications_for_Android_in_IntelliJ_IDEA">tutorial这里)
- 输入名称,选择机器人类型。
- 有一个步教程缺少的,当你被要求选择在 JDK (选择SDK之前),你需要选择的Java JDK 您已经安装了较早。应在
C:\ Program Files文件\的Java \ jdk的{版本}
- 选择一个新的平台(如果有不是一个选择的),SDK平台是
Android平台的C:\ Program Files文件\机器人\ Android的SDK-窗口
。 - 选择Android版本。
- 现在,你可以写你的程序。
- Run IntelliJ
- Create a new project (there's a tutorial here)
- Enter the name, choose Android type.
- There's a step missing in the tutorial, when you are asked to choose the JDK (before choosing the SDK) you need to choose the Java JDK you've installed earlier. Should be under
C:\Program Files\Java\jdk{version}
- Choose a New platform ( if there's not one selected ) , the SDK platform is the android platform at
C:\Program Files\Android\android-sdk-windows
. - Choose the android version.
- Now you can write your program.
编译:
- 靠近运行按钮,你需要选择的下拉列表中,选择修改配置
- 在 preFER Android虚拟设备选中 ... 按钮
- 点击上创建,给它一个名字,preSS确定。
- 双击新设备来进行选择。
- preSS确定。
- 您已经准备好运行程序。
- Near the Run button you need to select the drop-down-list, choose Edit Configurations
- In the Prefer Android Virtual device select the ... button
- Click on create, give it a name, press OK.
- Double click the new device to choose it.
- Press OK.
- You're ready to run the program.
这篇关于我如何设置IntelliJ IDEA的Android应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文