Android development could not find class solution

Source: Internet
Author: User

Online a demo, after the import run error flash back, log hint can not find the main activity OnCreate method, but in fact there is no error.

Programme Source: http://blog.sina.com.cn/s/blog_6966c76b01011fye.html

Workaround:

1. The project did not import the jar package, if it is to import other people's project into their eclipse, you need to right-click the project bulid path->add Libraries->user Library->user Libraries->new (from a name) ->add Jars (Add the required jar package to a ):

2. There is no setting in the properties, right-click Project->properties->java Build Path->order and Export will be just new a tick, OK. : This allows the jar package to be compiled together into an. apk file. Running under the emulator will not could the not find class * * Referenced from Method * * error.

Android development could not find class solution

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.