In the import of external projects, often encounter version discrepancy error, the following with today's imported project as an example, explain the root causes of such problems and solutions.
Import external project named Pro, the SDK version is 21, and due to the minimum version and target version inconsistent, the original project to SUPPORT-V7 as the library, its default SDK version is also 21
After the import, first error styles problem, because the use of the styles version is lower, need compatible support, that is, the lack of SUPPORT-V7 engineering. The workaround is to locate the Support-v7/appcompat file under the SDK path and import the project. Right-click on the project->properties->android, select the same SDK version as Pro, then check islibrary to indicate that the project can be used as a library reference by another project.
At this point, pro refers to support-v7 to be compatible with style issues, but because the SUPPORT-V4 versions are different in both projects, the jar mismatch will still be error-related. At this point, simply remove the Support-v4.jar package under BuildPath in the AppCompat project and import the Support-v4.jar package under Pro. Be sure to check whether the Support-v4.jar under the right-click Pro has an Add option, and there is a description that is not yet referenced and needs to be added.
Android SDK Version Issue