1

I have imported AOSP code into Android Studio, on building it I am getting some internal errors but Run, Debug buttons are disabled.

enter image description here

The errors I am getting are:

enter image description here

Can anyone please help me how to resolve this error and to compile AOSP into Android Studio. Also can anyone please help to how to convert this project into a Gradle project?

frogatto
  • 28,539
  • 11
  • 83
  • 129
CoderBeginner
  • 717
  • 1
  • 12
  • 39

2 Answers2

1

AOSP used a special format of makefile to build the whole project. If you insist build it on the IDE, you should write a plugin to index the whole makefile on your own.

Focus on something more meaningful. Review and modify the code in IDE, build it in shell, save your time.

1

To browse and debug AOSP use Intellij IDEA (close to Android Studio) or Eclipse. AOSP source contains a tool to generate configuration for these two IDE called IDEGen.

IDEGen automatically generates Android IDE configurations for IntelliJ IDEA and Eclipse. Your IDE should be able to compile everything in a reasonable amount of time with no errors.

IDEGen README

To debug AOSP Java code take a look at this article (even though it is for Android Studio, configuration is the same for InteliJ IDEA).

Hugo y
  • 1,421
  • 10
  • 20