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.