Android编译新增应用的问题

xuhui_7810 2012-12-06 03:05:24
大师们,我在packages/apps/下面新建了一个Ashmen的应用。其中Android.mk文件定义如下:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)

LOCAL_MODULE_TAGS := optional

LOCAL_SRC_FILES := $(call all-subdir-java-files)



LOCAL_PACKAGE_NAME := Ashmem

LOCAL_CERTIFICATE := platform

include $(BUILD_PACKAGE)

###################################################
AndroidManifest.xml文件定义如下:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.ashmem"
android:sharedUserId="android.uid.system"
android:versionCode="1"
android:versionName="1.0">
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".Client"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<service
android:enabled="true"
android:name=".Server"
android:process=".Server" >
<intent-filter>
<action android:name="com.android.ashmem.server"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</service>
</application>
</manifest>

现在我配置好环境变量后,就开始调用mmm packages/apps/Ashmem来编译这个新增的应用,但是编译不过,报错如下:
============================================
No private recovery resources for TARGET_DEVICE msm7627a_sku3
Copying: out/target/common/obj/APPS/Ashmem_intermediates/emma_out/lib/classes-jarjar.jar
make: *** No rule to make target `build/target/product/security/platform', needed by `out/target/product/msm7627a_sku3/obj/APPS/Ashmem_intermediates/package.apk'. Stop.

请问这是怎么一回事啊
...全文
382 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
xialiangdancer 2013-01-30
  • 打赏
  • 举报
回复
楼主,我也遇到了这个问题,请问你解决了吗?要是解决了,能告诉下怎么解决的不,谢谢
问答小助手 2012-12-10
  • 打赏
  • 举报
回复
文件夹 build/target/product/security/platform 中有 platform.pk8 和 platform.x509.pem吗?
xuhui_7810 2012-12-06
  • 打赏
  • 举报
回复
在线求解答,急

80,351

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧