Differences between the three Libraries in the Android project: Private Libraries, Referenced Libraries, Dependency Libraries, and androiddependency

Source: Internet
Author: User

Differences between the three Libraries in the Android project: Private Libraries, Referenced Libraries, Dependency Libraries, and androiddependency
I. Functions and usage of v4, v7, and v13 1. What are Android Support V4, V7, and V13?

Essentially, it is three java libraries.

2. Why is there a support library?

Zookeeper is designed to solve software compatibility issues. If you develop an application on the Android platform of a lower version, and the application wants to use the features of a later version, you need to use the Support library.
Zookeeper android api has always been highly compatible with low versions. such as api-8 (android2.2) must be compatible with api-4 (android 1.6 ). however, this is not the case. You have built an apk using the platform Version 2.2. If you want to run it on version 1.6, You need to implement backward compatibility.
Zookeeper android support-xx is google's official downward compatible package. As shown in the name, it will help build programs to be backward compatible with version 1.6. However, it is not omnipotent and still limited.
Zookeeper Android for compatibility 2. versions earlier than X, so android is available. support. v4 package, the main role of this package is to facilitate developers in 2. in the development environment of X, 4.0 controls are used.

3. What are the differences and functions of the three Support libraries?

Zookeeper briefly describes the differences between these versions:

  • Android Support v4: this package is designed to take care of version 1.6 and later. This package is the most widely used. It is included by default when eclipse creates a new project.

  • Android Support v7: this package is designed to take care of versions 2.1 and later, but it does not include lower. Therefore, if you do not consider 1.6, you can add this package, v7 depends on the v4 package, that is, the two must be included at the same time.

  • Android Support v13: this package is designed for android 3.2 and later versions. It is generally not commonly used and can be used in tablet development.

4. What exactly does the Android Support package have?

Http://www.2cto.com/kf/201411/350928.html

2. View A javaee Project (developed using myeclipse)

  • Jre system library: The jar in the JRE system library is a class library (many jar packages) dependent on which java runs ).

  • Java ee 5 libraries: The jar in Java EE libraries is a class library (many jar packages) used to run web projects ).

  • Referenced libraries: it is the class library to be referenced by the project. Here it is the reference of something under lib.

  • Lib: Put the jar packages required by various third-party projects. Add the jar package to lib. The system automatically loads the jar package to referenced libraries.

3. view an android Project (developed using eclipse)

  • Android4.4: directly supported jar packages. We can use this package to develop software without v4, but for compatibility, we must use v4.

  • Android Private Libraries: indicates the jar package reference placed in libs, which is considered as a Private reference. It stores the android private library (under the libs directory ). Add the jar package to libs. The system automatically loads the jar package to android private libraries. Private Libraries is the ing of the jar package in libs! You can remove the jar package from libs from Private Libraries.

  • Libs: Not described

Zookeeper also has an android Dependency. Currently, we do not know the differences between android Dependency and Android Private Libraries:
Baidu's answer:
Zookeeper Android Private Libraries references a third-party jar package, and dependencies References libraries.

What is the difference between libraries and jar packages in zookeeper java?
The producer library is a class library. jar file set. generally, there are several. class files can implement a set of functions. package the class file. jar file. for example, to use a collection class, we need to import java. uitl. *; it corresponds to a jar package (. jar file. class file.
Zookeeper is basically the same, but you can understand it as follows: what is in LIB is generally a more formal thing, while what is in the JAR package can be played by anyone, however, it is not necessary to determine the specific usefulness. However, if it is better, the LIB should be similar to the JAR package.

Iv. Summary

Zookeeper compares the structures of the two projects. It can be seen that Google does not follow the standard eclipse project structure and has its own standards.

5. Another knowledge:

What is the use of order and export in the build path in zookeeper eclipse?
When constructing the sequence and exporting the resources, the order is the order of the class (because the class name may be the same ), export is used to publish some lib and project simultaneously.
In the order and Export entries, Zookeeper cannot repeatedly inject the jar package into the APK. Now android divides the exported jar package into two types: Android Dependencies and Android Private libraries, the purpose is for developers to choose, but these two must be included in the Apk!

Related Article

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.