The correct steps for how to import third-party jar packages from an Android project in eclipse

Source: Internet
Author: User


What we saw most on the internet before is in the Java Build path add jars, add External jars or add Library, in fact, these just can ensure that the compilation is not a problem, but when you run the program, will be error.


For example, this kind of error CALSS not found exception, error inflating class


About why this problem occurs, this is the eclipse design was decided at the outset, so we just need to follow their official steps to do it.


1. The first thing to look at is your own ADT version (but it should be adt17 later, since adt17 was out in 2012)

ADT17 before you need to create a Lib directory under the root directory and put the jar package under LIB, and right-click Add to build Path


After 2.adt17 is smart, you only need to create the Libs directory in the root directory and put in the jar package, it will automatically generate Android Private Libraries,



Success depends on whether the package imported in the order and export of Java Build Path has a checkmark in front ....

:



Finished Finishing ~ ~ ~














The correct steps for how to import third-party jar packages from an Android project in eclipse

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.