Adroid I'm still a rookie--Import the jar package

Source: Internet
Author: User

Androidstudio How to import jar packages

Original address: http://jingyan.baidu.com/article/e6c8503c7190b7e54f1a1893.html

Androidstudio is very handy for developing Android APK, but many of its settings are not the same as eclipse. For example, to add a new jar to a project, there is no access to the Java compilation path in Androidsutdio, it is difficult to find the entry to add the jar. However, in a different way, it is convenient to add jars in the Androidsutdio.

Tools/Materials
    • Android Studio
    • A project that can be imported into Android studio
Method/Step
    1. Click Start Androidstudio, after the start of the interface. (Transfer to project)

    2. Copy the jar you need to add and paste it into the App--src--main--libs folder, and the Androidstudio project that you can run has a directory structure like this. You can see that although the jar has been copied and pasted, it has not yet been imported, so the contents contained in the jar are not visible. Import jar, you can see the contents of the jar.

    3. Right click on the new sticky jar and click on the add as Library in the pop-up menu.

    4. Select the module you want to import into (equivalent to project in Eclipse in Androidstudio), and if it's just a project, there's nothing else in the dropdown box except the app, then click OK to confirm.

    5. This allows the jar to be added to the project.

Adroid I'm still a rookie--Import the jar package

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.