0

I have been trying to compile the aosp project bootanimation (with its source code located at) in Android Stduio. It includes many .so libs that is included in /system/lib. But NDK doesn't provide access to these libraries. So how should I compile the project in AS with cMake? Or NDK-build is ok if cMake is not available.

satur9nine
  • 13,927
  • 5
  • 80
  • 123
WkAble
  • 41
  • 3

1 Answers1

1

Simple answer: You can't build pretty much any part of AOSP from Android Studio. You must use the command line as instructed by https://source.android.com/setup/build/building#build-the-code

If you want to build a single module try mm after you have built the whole thing. See Building a particular module in the android source code for more info.

If you want to use an IDE for editing code I recommend IntelliJ. There is an idegen.sh script in AOSP to help you set it up, but you will end up with an IntelliJ project so bloated that it will be nearly impossible to use, better to set it up as a pure java project with a JDK that has no libraries and add all the source locations by hand.

satur9nine
  • 13,927
  • 5
  • 80
  • 123