Android Studio References External library by reference

Source: Internet
Author: User

1. Add the file address, absolute address and relative address of the external library in Setting.gradle, new file ('.. /unity_base_dev_helper ') is indicated in the main project directory.
Project (': Unity_android_dev_helper '). File (' d:/devworksapce/githubworkspace/androidunitylab/unity_base_dev_helper ')  
2. Add a new dependent library in Setting.gradle
include ': App ' ': Unity_android_dev_helper '
3. Add a reference to a module that needs to use the Unity_base_dev_helper dependent library
Compile project (': Unity_android_dev_helper ')
At this point, themodifications to the Unity_base_dev_helper module can be synchronized to any project that references it.
Question Summary 1.BUILD FAILEDexecution failed for task ': Transformclasseswithdexforarmv7debug '.Workaround: Check whether the Build.gradle buildtoolsversion of each module is consistent

From for notes (Wiz)

Android Studio References External library by reference

Related Article

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.