I have a problem to pre-build a android browser plugin.

Procedure.
1. Create package/apps/LunaTest directory.
2. Create Android.mk file.
3. The files "LunaTest.apk", "liblunatest.so" and "libysshared.so"
exist in LunaTest directory.
4. Add the string, "LunaTest" into the file generic.mk under "build/
target/product/" directory.
5. Execute "./build_android".


Android.mk is as below:

=====================
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

LOCAL_PROGUARD_ENABLED := disabled
LOCAL_PACKAGE_NAME := lunatest
LOCAL_MODULE := LunaTest
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(LOCAL_MODULE).apk
LOCAL_MODULE_CLASS := APPS
LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
LOCAL_REQUIRED_MODULES := liblunatest libysshared
LOCAL_CERTIFICATE := platform

include $(BUILD_PREBUILT)

include $(CLEAR_VARS)

LOCAL_MODULE := liblunatest
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(LOCAL_MODULE).so
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/plugins/
com.luna.lunatest
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
include $(BUILD_PREBUILT)

include $(CLEAR_VARS)
LOCAL_MODULE := libysshared
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(LOCAL_MODULE).so
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/plugins/
com.luna.lunatest
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
include $(BUILD_PREBUILT)
=====================

First, I copyed the shared object files into "/system/lib/plugins/
com.luna.lunatest", but the plug-in didn't work.
So I moved the files into "/system/lib", but it showed the same
result; it didn't work.

The error message is as below:
=====================
Can't open dex cache '/data/dalvik-cache/
system@[email protected]@classes.dex':No such file or directory.
=====================

Could anyone help me to solve this problem?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to