Eclipse adds CardView to a variety of exotic problems

Source: Internet
Author: User

The 1.CardView library is under the E:\ANDROID\ANDROIDSDK\SDK\EXTRAS\ANDROID\SUPPORT\V7 directory ...

2. Add the method. Copy the CardView folder directly to your project's same level directory

3. Import Eclipse

4. In the CardView project right-click Properties Select the IS library then OK

5. An important step has come. Our common add library is to select Properties and add and then select Library. However, CardView is more special I add in still error message is

Java.lang.noclassdeffounderror:android.support.v7.cardview.r$styleable (This is the error I added in the Java Code CardView report)


The error message for XML authoring is Binary XML file line #2: Error inflating class Android.support.v7.widget.CardView


6.google was a long time stackoverflow, so I thought Eclipse could not import whether something was missing, finally saw a man say eclipse he can import, and then I went on to study


7. Workaround Properties >java Build Path>libraryies>add jars (select the jar inside the CardView project) > then select the first item in the Add library and then next then Ok


8. After the addition of the three must have a OH




9. Operation Effect




Eclipse adds CardView to a variety of exotic problems

Related Article

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.