After android upgrades ADT to 22, a bug occurs: cocould not find class, or Caused by: java. lang. ClassNotFoundException: exception occurs.

Source: Internet
Author: User

Author: willing to go to the 333 homepage:Http://blog.sina.com.cn/u/1509658847
Copyright Notice: Original works can be reproduced. During reprinting, you must mark the original publication, author information, and this statement in hyperlink form. Otherwise, you will be held legally liable.

After the ADT is upgraded to 22, a bug such as "cocould not find class" will occur in the compilation project"
I have used baidu map, so there will be no prompt for "cocould not find class 'com. baidu. mapapi. bmapmanager,
This is annoying and has been found for a long time because of the new feature bug after the ADT is upgraded,
Follow the tutorial below to summarize
You just need to check the "android private libraries" on the Order and Export interface on the Java Build Path interface.

Refer to the following URL:
Http://mobile.51cto.com/abased-394640.htm

\ ****** Reference ********\

Yesterday, we updated androidsdk and adt to the latest version, android sdk r22.

After the update, the third-party JAR package cannot be found after the original project is packaged. After searching for the third-party JAR package online for half a day, the problem is finally found.

The new version has an Android Private Libraries structure, which is useless, for example:

All third-party JAR packages are imported into Android Private Libraries,

Go to the Java Build Path interface and find the Order and Export interface:

Check whether the following items are checked:

I did not check Android Private Libraries. As a result, the package is not included in the package.

\* ***** Reference *****\

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.