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