Android SDK Version Issue

Source: Internet
Author: User

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

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.