Android introduced support-v7-appcompat package values folder error solution, androidappcompatv7

Source: Internet
Author: User

Android introduced support-v7-appcompat package values folder error solution, androidappcompatv7

When using Eclipse for compilation, when we want to make our applications compatible with earlier versions of the SDK, we need to use the support packages provided by Google for us.
Google's goal is to make the android SDK always backward compatible and enable programmers to focus on the implementation of their own code functions without having to go through more tangled versions to adapt to problems.
(The conscience of the industry !)
However, when we reference the support package, it is often troubled by the following exceptions:

Below I will share my solutions:

1. Determine the version number of your support package. The procedure is simple:

(1) Open your sdk Manager interface:

You can see the latest version of the support package. If you want to update the version, update it to the latest version, and then perform step 2.

(2) The first step is to know the version of your support package, and then reference the appcompat support package in your sdk to the compiler. The general path is :... Sdk \ extras \ android \ support \ v7 \ appcompat.
Directly use the import operation.

(3) If the above exception red error occurs after the introduction, then do not be nervous, right-click the android-support-v7-appcompat project:-"properties-"

Do you still remember the version number you remembered in the first step? Check the corresponding version number here, apply it, and clean the project. The error disappears without a trace ....

[Note: If a Project references this support package, the Project Build Target of that Project must be the same as the support package (the operation is similar to the third step above ), otherwise, an exception occurs]

Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

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.