Hit the jar pack under Android Studio

Source: Internet
Author: User

These days in the study of Android network programming things, helpless on GitHub to download the volley project is the directory structure of Android Studio, I will make it into a jar package, whether it is under studio, or under Eclipse, it will be easier to use.

This paper studies the directory structure of the volley framework, and discovers that it is the Java code directory and the manifest file, which is very simple for this kind of library file. We can copy the code into our engineering catalog to use, in contrast I prefer the jar package.

In fact, there is a new type of packaging in Android, that is, AAR, in Android studio when the library files are compiled, the *.jar and *.arr files are generated at the same time.

  • Jar file directory:volley/build/intermediates/bundles/debug (release)/classes.jar
  • AAR Files directory:volley/build/outputs/aar/libraryname.aar

If the compiled library file does not involve the UI (res), there is no assets, no aidl, then this classs.jar can be used.

If it is an animation library, etc. involving the above file, you can only use AAR.

Hit the jar pack under 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.