应用放到源码编译的引入包问题
我们在AS里面加入的那些包在Android系统里面肯定是没有的,我们首先要在maven仓库里下载对应版本的jar包。下载步骤:
1.翻墙
2.进入一个GreenDao的maven仓库,如:
https://mvnrepository.com/artifact/org.greenrobot/greendao/3.1.0
点击下载就可以了。
先粘贴一下我的Android.mk文件:
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
#LOCAL_RESOURCE_DIR += frameworks/opt/datetimepicker/res
#
#ifeq ($(TARGET_BUILD_APPS),)
#LOCAL_RESOURCE_DIR += frameworks/support/design/res
#LOCAL_RESOURCE_DIR += frameworks/support/v7/appcompat/res
#LOCAL_RESOURCE_DIR += frameworks/support/v7/gridlayout/res
#LOCAL_RESOURCE_DIR += frameworks/support/v7/recyclerview/res
#else
#LOCAL_RESOURCE_DIR += prebuilts/sdk/current/support/design/res
#LOCAL_RESOURCE_DIR += prebuilts/sdk/current/support/v7/appcompat/res
#LOCAL_RESOURCE_DIR += prebuilts/sdk/current/support/v7/gridlayout/res
#LOCAL_RESOURCE_DIR += prebuilts/sdk/current/support/v7/recyclerview/res
#endif
LOCAL_SRC_FILES := $(call all-java-files-under, java)
LOCAL_MODULE_TAGS := optional
LOCAL_PACKAGE_NAME := ParentManager
LOCAL_CERTIFICATE := platform
LOCAL_DEX_PREOPT := true
LOCAL_PROGUARD_ENABLED := full
#LOCAL_PRIVILEGED_MODULE := true
LOCAL_PROGUARD_FLAGS := -include $(LOCAL_PATH)/proguard.flags
LOCAL_STATIC_JAVA_LIBRARIES += android-support-design
LOCAL_STATIC_JAVA_LIBRARIES += android-support-v13
LOCAL_STATIC_JAVA_LIBRARIES += android-support-v4
LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-appcompat
LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-gridlayout
LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-recyclerview
#third part jars
LOCAL_STATIC_JAVA_LIBRARIES += greenDao
LOCAL_STATIC_JAVA_LIBRARIES += greendao-api
LOCAL_STATIC_JAVA_LIBRARIES += event