caused by:java.lang.noclassdeffounderror:android.support.v7.recyclerview.r$styleable occurs when using Recyclerview in eclipse

Source: Internet
Author: User

Turn from:

http://blog.csdn.net/chenleicpp/article/details/46848785

Program crashes, error message:

caused by:java.lang.noclassdeffounderror:android.support.v7.recyclerview.r$styleable

Reason:

The use of Recyclerview in Eclipse, compile no problem, but the run time will appear the following error, best not the solution, and said V4 package and V7 package version inconsistent, there is said not imported V7-compat package, after repeated experiments, concluded with V4 package, V7compat package is not related to the Recyclerview version of the relationship, Eclipse can only import 21.0.0 can be used.

Workaround:
In android-sdk/extras/android/m2repository/com/android/support/ A file named Recyclerview-v7-21.0.0.aar can be found under the RECYCLERVIEW-V7 directory based on the version number 21.0.0 directory. Unzip this file with Classes.jar, referencing this jar package.
Error
Under the Android-sdk/extras/android/support/v7/recyclerview directory there is a libs, which contains a jar package that references this jar package.

caused by:java.lang.noclassdeffounderror:android.support.v7.recyclerview.r$styleable occurs when using Recyclerview in eclipse

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.