AOSP和IntelliJ IDEA的 [英] AOSP and IntelliJ IDEA

查看:983
本文介绍了AOSP和IntelliJ IDEA的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人尝试过​​使用的IntelliJ IDEA与AOSP工作?我看到了Android的源特定文件夹(开发/ IDE /的IntelliJ),但我找不到任何信息如何使用它的情况下Android开发(Eclipse的信息可以在这里找到的:<一href="http://source.android.com/source/using-eclipse.html">http://source.android.com/source/using-eclipse.html)任何人都可以提供类似的说明如何开始的IDEA开发Android?

Has anyone tried to work with AOSP using IntelliJ IDEA? I see in Android sources a specific folder (development/ide/intellij) but I cannot find any information how to use it in case of Android development (for Eclipse the information can be found here: http://source.android.com/source/using-eclipse.html) Can anyone provide similar instructions how to start developing Android in IDEA?

推荐答案

从AOSP根文件夹,

1)首先建立自己的目标。这将产生需要在AOSP版本将要产生任何Java文件。 2)使用lndir创建AOSP目录的影子目录。 假设你的AOSP dir是〜约翰/工作/ AOSP / ICS。 然后创建〜/约翰/工作/ AOSP / icsshadow

1) First build your target. That will generate whatever java files that need to be generated during aosp build. 2) Create a shadow dir of aosp dir using lndir. Assuming your aosp dir is ~john/work/aosp/ics. Then create ~/john/work/aosp/icsshadow

光盘icsshadow和调用lndir ../ics。这将创建符号链接的一切在集成电路。

Cd to icsshadow and invoke "lndir ../ics". That will create symlinks to everything under ics.

3)现在使用icsshadow为所有的东西你的IDE需求/产生。如果你使用的IC文件夹中,AOSP建立,如果IDE生成的任何构建工件有时会失败。

3) Now you use icsshadow for all the stuff your IDE needs/generates. If you use ics folder, the aosp build some times fails if the IDE generates any build artifacts.

4)cd到icsshadow目录。 调用开发/工具/ idegen / idegen.sh

4) cd to icsshadow directory. Invoke development/tools/idegen/idegen.sh

等待,直到它完成。

5)如果你想使用的IntelliJ,从icsshadow文件夹打开android.ipr。如果你想使用Eclipse,请使用Eclipse编辑/浏览AOSP code

5) If you want to use IntelliJ, open android.ipr from icsshadow folder. If you want to use Eclipse, Please check Using Eclipse to edit/browse AOSP code.

这篇关于AOSP和IntelliJ IDEA的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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