Androidstudio adding dependent libraries and build.gradle

Source: Internet
Author: User

Three different methods

1.

File->project structure->dependencies

Point + number->library dependency, search for the required package, click OK

2. Switch the Left directory view mode to project

Right-click on app->libs to add the jar package, select Package right, add as library

3. Find the Build.gradle in the module of the project and add it in dependencies

Compile ' package name ', then click on the tip above the popup  SYCN now
About Gradle:https://www.jianshu.com/p/9c27dd7938b7 https://www.cnblogs.com/wxishang1991/p/5532006.html

4, if the addition of the module can be in the image above to select module dependency, prior to File->new->import module select the previously created Android Studio module

Androidstudio adding dependent libraries and build.gradle

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.