Android Studio Import third-party library (slidingmenu) tutorial

Source: Internet
Author: User

For a while, Android beginners, looking at various examples online, are hereby recorded.

Note: This tutorial is intended for third-party libraries that use the Android studio architecture like Slidingmenu.

Begin:

The first step, go to GitHub download Slidingmenu (: https://github.com/jfeinstein10/SlidingMenu), download down on your computer should look like this:

The second step is to build an Android Studio project:

The third step is to set up a model in our Slidingmenudemo project, which avoids many of the changes mentioned in the tutorial gradle, but there are a few details to note:

Select Android Library:

The model name was established:

The establishment should be this way: and the picture circle of the place no, the main file within the 2 folders 1 files all deleted

Fifth step: Go back to the first step of your Slidingmenu-master folder and enter Slidingmenu-master\library (res, SRC, Androidmanifest.xml), copy the following three files to the main folder:

Sixth step: Android Studio copy the file src folder name changed to Java:

Finally, add dependencies to the project:

Add in order of numbers: Slidingmenu-master dependencies:

OK, to here, basically is done, click Ok,ide will automatically recompile build project dependencies, next we practice a hand: (JDK6 above will appear source code error, Floatmath modified into math, on the line)

Recommended Blog:http://blog.csdn.net/yangyu20121224/article/details/9258275, he wrote the Android layout very well

Android Studio Import third-party library (slidingmenu) tutorial

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.