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