Android project run times wrong noclassdeffounderror

Source: Internet
Author: User

Noclassdeffounderror a headache when it comes to Android projects.

After the project has been imported, there is no error, but the operation will be reported.

Java.lang.NoClassDefFoundError:android.support.v4.view.ViewConfigurationCompat

and to see V4 's package,Viewconfigurationcompat This class really exists.

In the process of solving this error, I tried various methods, hereby tidy down.

Online a search, a lot of solutions ~ ~

Broadly categorized into the following categories:

http://ydpzg.blog.163.com/blog/static/17152629420127111178154/

http://blog.csdn.net/huangrangg12/article/details/8131325

http://blog.csdn.net/lllkey/article/details/9019861

There are new LIBS, delete libs all kinds of ~

The reason for the error, summed up is the following analysis:

1, referring to different versions of the same package, causing the program to run without knowing which. So the program is jerking off.
2, project dependencies, two projects exist different versions of the same package

The result, tried many many times! It's useless!!! Wasted two days of my time.

Also sent a post, got a few great God's help, thank you! But still did not solve the problem, obviously in the great God's computer is OK Ah!



At last... Changed a android.support.v4 bag. Compare the lower version of the. The problem is solved.

Heart plugs.

Finally, I guess this is the case:

Before is Android-19, so the high version of the V4 package can be used normally, after changing to ANDROID-17 environment, can't look up to the high version of the V4 package.


So, after a similar problem, find out the principle after you do not try again and again do not work hard, not your guide package problem ah, is the environmental problem ah, change a package, change the Environment ~ ~

Reprint please indicate the source: the blog of the Land

Android project run times wrong noclassdeffounderror

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.