Android studio-Import External Libraries

Source: Internet
Author: User

1. Import Local libraries

1 copy Gson-2.3.1.jar (Gson-2.3.1.jar for example) to App/libs directory

2 Add a line to the dependencies of App/build.gradle: Compile files (' Libs/gson-2.3.1.jar ')

2. Import Libraries Online

File > Project Structure > Dependencies Tab > (+) Add library dependency, take CardView for example

Enter the keyword: cardview, select Download according to the prompt of the list you want to choose

After the download, the External Library automatically adds a Cardview-xx.jar package and automatically increments the dependencies of App/build.gradle in a row:

' com.android.support:cardview-v7:23.4.0 '

Android studio-Import External 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.