Android source code uses third-party jar packages and Android-support-v7-appcompat compatible Lib libraries

Source: Internet
Author: User

Here is a small example I quoted, this makefile used to tct.drm.frameworks.jar,mtk-drm:libs/ Mtk.drm.frameworks.jar These two jar packages, and the project is dependent on the Android-support-v7-appcompat compatibility library. If we want to put this project in the Android source code to compile, then we need to add the following marked red content:

Local_path:= $ (Call my-dir) include $ (clear_vars) Local_module_tags:=Optionallocal_src_files:= $ (Call all-java-files-under, SRC) Local_src_files+ = $ (call All-java-files-under,.. /.. /.. /.. /.. /external/drmagent/Java) #Include Res dir from Librariesappcompat_dir: = .. /.. /.. /.. /.. /prebuilts/sdk/current/support/v7/appcompat/resres_dirs: = res $ (appcompat_dir) Local_resource_dir: = $ (Addprefix $ ( Local_path)/ , $ (res_dirs)) Local_java_libraries:=frameworks_ext tct.frameworklocal_java_libraries:=Tct.feature_querylocal_package_name:=Filemanagerlocal_module_path:=$ (target_out_app_path)local_static_java_libraries + = android-support-v4local_static_java_libraries + = android-support-v7-appcompatlocal_static_java_libraries + = TCT-DRM mtk- DRM#LOCAL_STATIC_JAVA_LIBRARIES+ = xuitls-1.5.4local_certificate:=platformlocal_aapt_flags: =--auto-add-overlaylocal_aapt_flags + =--extra- Packages Android.support.v7.appcompatlocal_proguard_flag_files:=Proguard.cfginclude $ (build_package) include $ ( call All-makefiles-under,$ (Local_path)) include $ (clear_vars) Local_prebuilt_static_java_libraries:= Tct-drm:libs/tct.drm.frameworks.jar \MTK-drm:libs/Mtk.drm.frameworks.jarinclude $ (build_multi_prebuilt)

Android source code uses third-party jar packages and Android-support-v7-appcompat compatible Lib libraries

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.