读书人

Android编译新增应用的有关问题

发布时间: 2012-12-23 11:28:15 作者: rapoo

Android编译新增应用的问题
大师们,我在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.

请问这是怎么一回事啊
[解决办法]
在线求解答,急
------解决方案--------------------


文件夹 build/target/product/security/platform 中有 platform.pk8 和 platform.x509.pem吗?

读书人网 >Android

热点推荐