android 库编译报错,android p make 编译lib静态库报错

如下是8.1到9.0版本编译出现问题

you can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.

8.1版本 make编译本地静态jar方式如下

第一步

LOCAL_STATIC_JAVA_LIBRARIES := \

android-support-v4 \

android-support-v7-recyclerview \

android-support-v13 \

evie_side_screen//这是本地jar包

第二步

include $(CLEAR_VARS)

LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := evie_side_screen:libs/evie-side-screen-library.jar

android p make编译本地静态jar方式如下

第一步(不变)

LOCAL_STATIC_JAVA_LIBRARIES := \

android-support-v4 \

android-support-v7-recyclerview \

android-support-v13 \

evie_side_screen//这是本地jar包

第二步

include $(CLEAR_VARS)

LOCAL_MODULE_CLASS := JAVA_LIBRARIES

LOCAL_MODULE := evie_side_screen

LOCAL_SRC_FILES := libs/evie-side-screen-library.jar

LOCAL_UNINSTALLABLE_MODULE := true

include $(BUILD_PREBUILT)

andrioid p make hide接口报错

LOCAL_SDK_VERSION 和 LOCAL_PRIVATE_PLATFORM_APIS 只能定义一个

LOCAL_SDK_VERSION  编译时影藏 @hide的API

LOCAL_PRIVATE_PLATFORM_APIS : = true会使用sdk的hide的api來编译

你可能感兴趣的:(android,库编译报错)