1、把包放到libs目录下,并在android.xml文件里面写如下操作
LOCAL_STATIC_JAVA_LIBRARIES := aios-v aios-s android-s4
LOCAL_SRC_FILES := $(call all-subdir-java-files)
LOCAL_PACKAGE_NAME := AiosBridge
LOCAL_CERTIFICATE := platform
include $(BUILD_PACKAGE)
include $(CLEAR_VARS)
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := aios-v:libs/aios-sdk.160918.1.jar \
aios-s:libs/aios-sdk.160918.1-sources.jar \
android-s4:libs/android-support-v4.jar
主要就是LOCAL_STATIC_JAVA_LIBRARIES := aios-v aios-s android-s4 和LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES 属性的设置
2、编译通过,但是拿apk到机器上运行,报错,提示找不到包
3、把该apk当做第三方apk,在系统外面进行系统签名
3.1 android 源码目录build\target\product\security 取platform.pk8 platform.x5