我如何设置IntelliJ IDEA的Andr​​oid应用程序? [英] How do I set up IntelliJ IDEA for Android applications?

查看:178
本文介绍了我如何设置IntelliJ IDEA的Andr​​oid应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何设置IntelliJ IDEA的Andr​​oid应用程序?

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:

  1. 在下载和安装的的Java JDK 选择Java平台
  2. 下载并安装 Android SDK中安装建议
  3. 在android的SD完成后,根据的Andr​​oid SDK工具安装,打开 SDK管理器 (有时需要在管理员的权限才能打开)
  4. 选择一切,并标记接受所有并安装。
  5. 下载并安装的IntelliJ IDEA 社区版是免费​​的
  6. 在等待所有下载和安装之类的东西来完成。
  1. Download and install Java JDK (Choose the Java platform)
  2. Download and install Android SDK (Installer is recommended)
  3. After android SD finishes installing, open SDK Manager under Android SDK Tools (sometimes needs to be opened under admin's privileges)
  4. Choose everything and mark Accept All and install.
  5. Download and install IntelliJ IDEA (The community edition is free)
  6. Wait for all downloads and installations and stuff to finish.

新项目:

  1. 运行的IntelliJ
  2. 创建一个新的项目(有一个<一个href="http://wiki.jetbrains.net/intellij/Developing_applications_for_Android_in_IntelliJ_IDEA">tutorial这里)
  3. 输入名称,选择机器人类型。
  4. 有一个步教程缺少的,当你被要求选择在 JDK (选择SDK之前),你需要选择的Java JDK 您已经安装了较早。应在 C:\ Program Files文件\的Java \ jdk的{版本}
  5. 选择一个新的平台(如果有不是一个选择的),SDK平台是 Android平台的C:\ Program Files文件\机器人\ Android的SDK-窗口
  6. 选择Android版本。
  7. 现在,你可以写你的程序。
  1. Run IntelliJ
  2. Create a new project (there's a tutorial here)
  3. Enter the name, choose Android type.
  4. 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}
  5. 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.
  6. Choose the android version.
  7. Now you can write your program.

编译:

  1. 靠近运行按钮,你需要选择的下拉列表中,选择修改配置
  2. preFER Android虚拟设备选中 ... 按钮
  3. 点击上创建,给它一个名字,preSS确定。
  4. 双击新设备来进行选择。
  5. preSS确定。
  6. 您已经准备好运行程序。
  1. Near the Run button you need to select the drop-down-list, choose Edit Configurations
  2. In the Prefer Android Virtual device select the ... button
  3. Click on create, give it a name, press OK.
  4. Double click the new device to choose it.
  5. Press OK.
  6. You're ready to run the program.

这篇关于我如何设置IntelliJ IDEA的Andr​​oid应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆