Android emulator created the first project encountered problems

Source: Internet
Author: User

Appcompat_v7 is Google's own compatibility package, which is a support library that allows Android2.1 to use the 4.0 version of the interface.

Solution One: regardless of the existence of APPCOMPAT_V7, directly do their own projects.

Workaround Two:

Accidentally remove the appcompat_v7, then appear the small Red Fork fork.

Click "Project" on the menu bar, select "Clean", then "OK", and when clean is complete, you will find the APPCOMPAT_V7 package error. The problem with the red warning in the test package has been resolved, except that the test package has a yellow warning, just because the import class in Test's Java file is not being used, so it is completely out of control.
If it does not work, then right-click the test project, select Properties, check the "islibrary" box under the Library, click "OK", then follow the steps above to perform "clean" operation.

Solution Three: since the APPCOMPAT_V7 package is a can let more than 2.1 of the full use of the 4.0 version of the interface of the support library, then we build the project directly to the minimum SDK selected above Android4.0 do not need this support library? The result proves that our idea is right.

  APPCOMPAT_V7 and create the project always have a small red fork, with the first two methods are not solved, only the third solves my problem, the remaining two I do not know how the effect, I am self-study only myself slowly groping.

Android emulator created the first project encountered problems

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.