Androidstudio Import Third Party open Source Library--Folder source code

Source: Internet
Author: User

1 in an open project File-new-importmodule Select the folder in the open source project, such as the Library folder and import it.

2 file-project sructure in modules select our project file (default app)-Select dependencies-Green "+" Module dependence Select the open source project we just imported, then we can To use the imported module.

3 because the gradle version compiler tool SDK and other tools version is likely inconsistent resulting in the failure to compile properly, we need to import the open source project in the project view Build.gradle in the relevant (such as Gradle version buildtoolsversion, etc.) version This model is changed to match the compilation environment of our project.

4 the same library file conflicts, the imported module may have the same external library file as our project, causing the Dex name conflict, then the same library file in our project deleted, and in the module dependence also deleted.

Androidstudio Import Third Party open Source Library--Folder source code

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.