Android Drip---androidannotations java.lang.ClassNotFoundException

Source: Internet
Author: User

Looking for information on the internet today,

Downloaded a demo,

Run times:

Caused by:
Java.lang.ClassNotFoundException:
Didn ' t find class "Net.mobctrl.listviewdemo.MainActivity_"
On Path:dexpathlist[[zip file "/data/app/net.mobctrl.listviewdemo-2.apk"],
Nativelibrarydirectories=[/data/app-lib/net.mobctrl.listviewdemo-2,/vendor/lib,/system/lib]]


At first thought is the author careless, manifest registered activity more Write an underscore _ (rookie one, not heard before androidannotations frame),

Then the underline is deleted, the program can run, but found that the page blank, nothing!


It feels wrong!

Then I went to see the code and found that I used a lot of annotations

Baidu, after discovering that the author was using the Androidannotations framework,

Manifest in the upper and lower lines are right, and then reported the above error!


Later on the Internet to find the use of androidannotation information, see if it is not used in the wrong!

Thank you for this article: http://www.it165.net/pro/html/201404/12213.html


After reading, you will need to configure the factory Path configuration jar under Annotation Processin under Java complier.

Once the configuration is successful, it will run correctly.


If you happen to be using ADT23.0.2, or just find your ADT without Annotation processing option,

May I have a look at this article: Android drip---ADT 23.0.2 cannot find annotation processing option, workaround

Get to help you!



Android Drip---androidannotations java.lang.ClassNotFoundException

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.