How to avoid adtbundle new projects always produce a appcompat_v7 and fragment_main.xml

Source: Internet
Author: User

When the problem arose, I forced the appcompat_v7 to delete, delete the small red Fork error, depressed. Then build a project, particularly cool to knock five big returns, the guy actually appeared again, really annoying. Well, then I'm not obsessive-compulsive, appcompat_v7 still can run the code normally. Later found that the "annoying" appcompat_v7 always come out because my ADT to 22.6.0 later version.

Why does Appcompat_v7 appear?

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: for people who are particularly disgusted with APPCOMPAT_V7. Since the APPCOMPAT_V7 package is a support library that allows more than 2.1 to use the 4.0 version of the interface, then we have to build the project to select the Minimum SDK above Android4.0 do not need this support library? The result proves that our idea is right.

Add:
To allow the interface to be better displayed on the tablet, Android introduced the Fragment (fragmentation) feature in version 3.0, which is very similar to activity and can include layouts like activity.

Android System 4.0 named Ice Creamsandwich (ICS, ice Cream Sandwich), is a new generation operating system released by Google. Android4.0 has ten key new features. Integrated with Google TV and Chrome OS smart parking, the speed of operation has been further improved. Google's new generation of Android Ice Creamsandwich will have only one version, while supporting smartphones and tablets, which will solve the problem of the Android 3.x system and Android 2.x operating system version differentiation, developers for tablets and smartphones development of applications will also be common.

How to avoid adtbundle new projects always produce a appcompat_v7 and fragment_main.xml

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.