Import third-party library projects using Android Studio

Source: Internet
Author: User

When using Android Studio development, the third-party library Slidingmenu (now deprecated), however, but how to import third-party libraries or need to know, after looking at the various materials, know a more easily feasible method

The steps are as follows

1. First, you need to download Slidingmenu (Https://github.com/jfeinstein10/SlidingMenu) from GitHub

2. Next, right-click New->module on your project (this avoids the tedious steps of modifying Gradle), then select the Android Library

3. Application/library name (project name) and module name are required after (this example is filled with slidingmenu-master)

4. After completion, under Project, replace all content in Java,res,androidmanifest.xml under Slidingmenu-master src->main with the downloaded Slidingmenu-master\ Content under the library (res, SRC, androidmanifest.xml)

5. Finally add a dependency to the project, right-click on your project New->open Module Settings, select the left app-> above the dependencies entry and the upper right corner of the green plus->module Dependency->slidingmenu-master, click OK and you're done.

Need to note is: JDK6 above will appear source code error, will floatmath change into math can also appear the method or R file could not find the problem, under build Click Clean Project can be

Original address: http://www.cnblogs.com/cxsy/p/5617586.html

Import third-party library projects using Android Studio

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.