Problem referencing Android-support-v7-appcompat library file error

Source: Internet
Author: User

Today the project wants to achieve a listviewanimation function, online has an open source solution

Https://github.com/nhaarman/ListViewAnimations

The open source project on GitHub is the latest code, and this article uses the previous version of Listviewanimations

Resource address: http://download.csdn.net/detail/fancylovejava/8493843, can go free download

This project is extracted and then imported into eclipse, need to add V7-appcompat library file, because some style theme property needs to refer to V7 properties, and some menu showasaction= "Ifroom" It's a property in V7.

Ok, the projects imported into Eclipse have library-listviewanimations and animationactivity two projects, this V7 project is I have dumped before Eclipse, and Android The SDK is 5.0 because the latest version of the SDK has been updated, resulting in a values-v21 resource file and some other 5.0 resource files in res in V7. Android 5.0 Although not popular in the country, but the future should be popular sooner or later, specifically I do not know.

Anyway, with the Android 5.0 SDK, you can develop a mobile app for Android version 5.0.

There is an error in the imported project, and there is no way to fix the project step-by-step ...

Remove the Library-listviewanimations v7 library file, and then refresh the

Will listviewanimations the demo project add under V7 Library file, and then Refrsh, the error disappears

However, (as if, specifically forget, anyway, look at the console console prompt error, and then resolve), remember to prompt a mistake

appcompat_v7\res\values-v21\themes_base.xml:191: But there was no obvious mistake in the project.

Then, run, but found or reported the error, said V7 can't find any resources ah

Before importing the library file there is actually a need to pay attention to, that is, if the project file is 4.4, the library file can not be more than 4.4 version, but now the problem, V7 is 5.0, the project is indeed 4.4, so even if the library file is added, but will still error.

So the SDK for the project file is also changed to 5.0, then refresh, run, ok~~~

The text description is more, but it is very concise ~ ~ ~

The next time you encounter a similar problem, there is a good solution ~ ~ ~, a lot of things on hand, take time to work to write, (fuck) AH (you) Ah!!


Problem referencing Android-support-v7-appcompat library file error

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.