How to add a jar package in Androidstudio

Source: Internet
Author: User

Add a jar package in Androidstudio, how to add it?

The following pure personal use of androidstudio process experience accumulated, if there is insufficient, hope to make recommendations.

Method One:

First click Project Structure in Androidstudio,

Figure 1

To the following interface

Figure 2

Then click on the + sign

Figure 3

Select Library Dependency

Figure 4

Enter the jar package you want, click on the magnifying glass search, find and then select OK after clicking OK, you will find that the jar you just selected is already in the project structure interface, then you OK, wait for loading on it, if not found, that means you this jar is not official, That is not very popular, not to be integrated into the Androidstudio, then you can not use this method to add, use the following method.

Method Two: Find the dependent dependencies in your project's module, put the jar package compile you see on GitHub directly, and then sync and wait.

Figure 5

Method Three: First go to the Internet to download the jar package you need, download it, and then switch the items in your Androidstudio to project

Figure 6

Find the Libs under the app and copy and paste the jar package you downloaded.

Figure 7

When the jar package is copied in, select your jar package, for example, I put a volley jar in here.

Figure 8

Select Volley, right-click, select the Add as library, put in your module (if you have multiple module, pay attention to which module you want to put in), and then load you will find just in the dependencies blank appeared in the show

Figure 9

Description The jar package was added successfully.

How to add a jar package in Androidstudio

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.