Существует инструмент под названием 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.
Обратите внимание, что в проекте IntelliJ необходимо выполнить некоторые настройки http://effie.io/opening-aosp-with-intellij-part-3/.
IntelliJ очень очень хорош при модификации частей Java фреймворка и очень страшен, если вам нужно изменить C / C ++. Для этого я использую код VS (я загружаю только модуль, который мне нужен, например, Hw composer или tinyalsa HAL)