Questions about using AAR on Android 4.4/5.1

Source: Internet
Author: User

You can use Local_static_java_aar_libraries on the Android6.0. The build script will extract the specified AAR to the temp directory and add Class.jar and res to the corresponding variable.

Local_static_java_aar_libraries: =$ (Strip $ (local_static_java_aar_libraries)) ifdef local_static_java_aar_libraries my_full_libs_manifest_deps 
    +=$ (foreach Lib, $ (local_static_java_aar_libraries), $ (call intermediates-dir- for, Java_libraries,$ (Lib),, COMMON)/aar/Classes.jar) My_full_libs_manifest_files+=$ (foreach Lib, $ (local_static_java_aar_libraries), $ (call intermediates-dir- for, Java_libraries,$ (Lib),, COMMON)/aar/androidmanifest.xml) Local_resource_dir+=$ (foreach Lib, $ (local_static_java_aar_libraries), $ (call intermediates-dir- for, Java_libraries,$ (Lib),, COMMON)/aar/res) endif

Local_static_java_aar_libraries does not exist in Android4.4, but just refer to the above steps. Manually unzip the AAR and add it to your project and use a statement similar to the following:

Local_static_java_libraries + =    Lib_android_recyclerview+--extra-Packages Android.support.v7.recyclerview    + = $ (Addprefix $ (local_path)/, android-recyclerview-v7/Res)    + = Lib_android_recyclerview:android-recyclerview-v7/classes.jar

Questions about using AAR on Android 4.4/5.1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.