应用放到源码编译的引入包问题

应用放到源码编译的引入包问题

 

我们在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

你可能感兴趣的:(Android学习之路,android)