如何建立AOSP应用程式? [英] How to build AOSP app?

查看:98
本文介绍了如何建立AOSP应用程式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从AOSP构建Camera App.

I am trying to build the Camera App from AOSP.

我正在使用UBUNTU 14.04.

I am on UBUNTU 14.04.

我遵循了官方文档中的指南.最后我执行

I followed the guide in the official documentation. At the end I execute

make Camera

我收到以下错误消息.

...
...
including ./system/media/audio_utils/Android.mk ...
including ./system/media/camera/src/Android.mk ...
including ./system/media/camera/tests/Android.mk ...
including ./system/netd/client/Android.mk ...
including ./system/netd/server/Android.mk ...
including ./system/security/keystore-engine/Android.mk ...
including ./system/security/keystore/Android.mk ...
including ./system/security/softkeymaster/Android.mk ...
including ./system/vold/Android.mk ...
including ./tools/external/fat32lib/Android.mk ...
make: *** No rule to make target `Camera'.  Stop.
#### make failed to build some targets (33 seconds) ####

1)如何从AOSP源构建特定的应用程序,输出位于何处?输出的格式是什么?可以生成一个.apk文件吗?

1)How can I build a specific app from AOSP source and where does the output located? What is the format of output? Is it possible to produce an .apk file?

2)是否可以在Android Studio中编辑源代码并进行编译?我知道AOSP官方页面已经包含了一些有关Eclipse的资源.

2)Is it possible to edit the source in Android Studio and compile it? I know that the official AOSP page contains some resources about eclipse already.

推荐答案

我相信您首先需要通过调用以下内容来设置构建环境:

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

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

然后,仅调用make命令来构建相机:

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

make Camera -j8

您的设备应为设备配置之一,例如"hammerhead"用于Nexus5

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

这篇关于如何建立AOSP应用程式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆