Android imports its own generated jar, always could not find class

Source: Internet
Author: User

Recently started to learn Android, to develop a small project, the function is very simple, is to get data from the server, then displayed on the phone. Plan to package the functionality of the access server into a jar file. Then Android introduces the jar package.

A new Java project was created in Eclipse. After completing the code test, packaging the jar file is smooth. Refer to Android project, debug total error, could not find class. Tossing for a few days, had no solution, and almost tried it all over

, all the methods on the Internet are not working. It suddenly dawned on the Java project that the jar could not be referenced to Android. Later, a new Android project was created to complete the function of accessing the server in an Android project and then packaged. Again

Reference the new JAR package. Commissioning is possible! (Novice's little note)

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.