本文介绍了我应该为aosp android使用哪个IDE?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要基于6到9自定义SystemUI,但是问题是当我比较要在9中应用的6源代码补丁时,可能会丢失导入语句和方法映射当我导入整个aosp项目并执行时.但是,当我导入整个aosp项目时,它不会显示要导入或缺少类的系统UI方法的编译错误.

I need to customize SystemUI based on 6 to 9 but problem is when I am comparing the 6 source code patch to apply in 9, there are possibilities of missing import statement and method mappingwhen I import the entire aosp project and do. But when I import the entire aosp project, it will not display compile error of System UI methods to import or missing class.

我可以知道哪个是用于aosp系统应用程序的最佳IDE吗?

May I know which is the best IDE to use for aosp system apps?

推荐答案

有一个名为idegen的工具可以为IntelliJ和Eclipse生成项目文件. https://android.googlesource.com/平台/开发/+/refs/heads/master/tools/idegen/README

There is a tool called idegen to generate project files for IntelliJ and Eclipse. https://android.googlesource.com/platform/development/+/refs/heads/master/tools/idegen/README

If you're using IntelliJ...
    If this is your first time using IDEGen...
        Android is large, thus IDEA needs a lot of memory. Add "-Xms1g -Xmx5g" to
        your VM options in "Help > Edit Custom VM" and increase the
        file size limit in "Help -> Edit custom properties" by adding
        "idea.max.intellisense.filesize=100000". Make sure to restart the IDE for
        the new settings to take effect.
        Create a JDK configuration named "1.8 (No Libraries)" by adding a new
        JDK like you normally would and then removing all of the jar entries
        under the "Classpath" tab. This will ensure that you only get access to
        Android's core libraries and not those from your desktop VM.
    From the project's root directory...
        Repeat these steps after each sync...
        1) make (to produce generated .java source)
        2) development/tools/idegen/idegen.sh
        3) Open android.ipr in IntelliJ. If you already have the project open,
           hit the sync button in IntelliJ, and it will automatically detect the
           updated configuration.
        If you get unexpected compilation errors from IntelliJ, try running
        "Build -> Rebuild Project". Sometimes IntelliJ gets confused after the
        project changes significantly.

请注意,应该在IntelliJ项目中进行一些调整以获得最佳性能 http://effie.io/opening-aosp-with-intellij-part-3/.

Note that some tweaks should be done in IntelliJ project for optimal performance http://effie.io/opening-aosp-with-intellij-part-3/.

IntelliJ在修改框架Java部件时非常好,如果需要更改C/C ++,则非常糟糕.为此,我使用VS代码(我只加载所需的模块,例如Hwcomposer或tinyalsa HAL)

IntelliJ is very very good when modifying framework Java parts and very terrible if you need to change C / C++. For that I use VS code (I load just the module I need like Hwcomposer or tinyalsa HAL)

这篇关于我应该为aosp android使用哪个IDE?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-22 21:47