如何编写AAR库的Android.bp

时间:2018-11-14 15:35:38

标签: android-build aar android-soong

android.mk包含以下标志:

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE_TAGS := optional

LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4 android-support-v13
LOCAL_JAVA_LIBRARIES += widget

LOCAL_MODULE := myaarlibrary

LOCAL_CERTIFICATE := platform

我写了一个简单的书,没有用。而且找不到R包。

res_dirs = ["res"]

java_library {
    name: "myaarlibrary",
    srcs: [
        "src/com/gm/connectivityerror/*.java",
    ],


    libs: [
        "widget",
    ],

    static_libs: [
        "android-support-v4",
        "android-support-v13",
    ],

}

有人会给我样品吗?还是Android.bp的详细资料? 谢谢。

0 个答案:

没有答案