aosp android 应该使用哪个 IDE?

Sha*_*dow 2 ide android android-source

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

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

Ric*_*hez 5

有一个名为 idegen 的工具可以为 IntelliJ 和 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.
Run Code Online (Sandbox Code Playgroud)

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

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