尝试如下将 androidx.viewpager2 添加到 android.mk :
<ul class="dropdown-menu">
<form>
<div class="container p-0" style="width:50%;">
<div class="col-12 pr-0 pl-0 mb-3">Show items with value that:</div>
<select class="p-1 mb-3">
<option value="after">After</option>
<option value="before">Before</option>
<option value="equal">Equal</option>
</select>
<input type="date" class="p-1 m-2">
<select class="p-1 m-2">
<option value="and" style="width: 10px;">AND</option>
<option value="or">OR</option>
</select>
<select class="p-1 mb-3">
<option value="after">After</option>
<option value="before">Before</option>
<option value="equal">Equal</option>
</select>
<input type="date" class="p-1 m-2">
<div class="row">
<button class="col-5 btn btn-primary p2 m-2">Filter</button>
<button class="col-5 btn btn-primary p2 m-2">Cancel</button>
</div>
</div>
</form>
</ul>
无法使用MMA命令构建代码,并出现以下错误。
忍者:错误: 'out / target / common / obj / JAVA_LIBRARIES / androidx.viewpager2_viewpager2_intermediates / package-res.apk', 需要 'out / target / product / apps / obj / APPS / app_intermediates / package-res.apk', 丢失,没有已知的规则
05:31:24忍者失败,退出状态为1
无法建立某些目标(05:38(mm:ss))
如何将androidx.viewpager2添加到Android.mk Makefile。
答案 0 :(得分:1)
您必须将viewpager2-1.0.0.aar添加到LOCAL_STATIC_JAVA_LIBRARIES
(或LOCAL_STATIC_JAVA_AAR_LIBRARIES
)中。
答案 1 :(得分:1)
添加以下块以支持/与Android.mk文件中的.AAR库文件同步
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
.
.
LOCAL_PACKAGE_NAME := App_Name
.
LOCAL_PRIVATE_PLATFORM_APIS := true
.
LOCAL_STATIC_JAVA_LIBRARIES := AAR_file-alias
.
include $(BUILD_PACKAGE)
include $(CLEAR_VARS)
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := AAR_file-alias:lib_path/AAR_file.aar
include $(BUILD_MULTI_PREBUILT)