How to build AOSP app?

孤街浪徒 提交于 2019-12-02 02:43:47

I believe you first need to set up your build environment by calling:

##> source build/envsetup.sh
##> launche <your-device-config>

Only then, call the make command to build the Camera:

make Camera -j8

your device should be one of the device configurations, for example "hammerhead" is for Nexus5

You have 2 camera apps. The old version is called LegacyCamera and the newer version Camera2. You don't need to run make in order to compile them. You can just run

'mmm packages/apps/Camera2'

OR

'mmm packages/apps/LegacyCamera'

'make camera2' will build all the dependencies and then the actual camera2 app, which will be placed somewhere in out/, depending on your selected lunch target.

Once you've built it once to get the dependencies, mmm packages/apps/Camera2 will be a fast incremental compile, but it doesn't on its own build the dependencies.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!