Android Studio 0.8.11 How to import the library (novice to)

Source: Internet
Author: User

Online a viewpagerindicator library, download it is a zip package, unzip it, there is a library and a sample folder, there are some other configuration files.

The library is the one we want to introduce in our new project. (actually introducing module)

Steps:

  1. Select File-"Import Module" in Android Studio ...
  2. Navigate to the Library folder above
  3. Next step ...
  4. Finish
  5. This time may be reported some errors, mostly because the Gradle configuration version problem, fixed to the version that is being used, so we will import the library.

After incredibly encounter XML can not preview the problem, the hint is theme set error, adjusted for half a day, also not good, @string also lost, helpless under turn off Android Studio re-open, good, no language--.

It said that the import of the source file, the jar package import is more simple.

Can be directly copied to the Libs directory, you can also file-"Project Structure, find dependencies, dot below that small + number, you can introduce their own jar package, file, and module dependencies.

Then I import the V4 package, the XML is still unable to use the Viewpager, restart after the good, heaven ah.

Android Studio after all beta version, bug or a lot, encounter problems multiple start Ah, naive!

Android Studio 0.8.11 How to import the library (novice to)

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.