APPCOMPAT_V7 caused by the new Android project compiled but the problem

Source: Internet
Author: User

When you create a new Android4.4 (KK)-based Android project on Eclipse ADT, even HelloWorld's starter projects will fail to compile, and will report the following error "Thecontainer ' Android Dependencies ' References non existing library '/home/omar/workspace/appcompat_v7/bin/appcompat_v7.jar ' ". The reason is Appcompat_v7.jar .

APPCOMPAT_V7 is a new Compatibility pack that ADT 22.6 joins after, so-called compatibility packs are some classes or components that help lower versions of compatible versions, allowing projects that invoke the version API to run smoothly on low-version machines.


This is because I have contact with the Android short time, the foundation is poor, the level of catching the urgency of a conference finally can not or turn over the wall to Google (Baidu Garbage technology dogs can only see the yellow map)

The following solution is as follows (great God and experienced auto drifting over, now think of really small white question)

Method One:


The solution can be consulted: https://developer.android.com/tools/support-library/setup.html

The problem is mainly addressed as follows:

要通过SDK管理器下载支持库:

  1. 启动了Android SDK管理器 。
  2. 在SDK管理器窗口中,滚动到软件包列表的末尾,找到Extras文件夹 ,如果有必要,展开以显示其内容。
  3. 选择Android支持库项目。

    注意:如果你正在开发采用Android Studio中,选择和安装Android支持信息库项目来代替。

  4. 点击安装包...按钮。
  5. After the download is ready for development

Method Two: (recommended)

Choose compatible with the lowest API and Android system choose 4.0 to solve, anyway 4.0 phone also basically eliminated, even if there is not your user group it!

The solution is as follows: the Minimum SDK version (Minimum Required SDK) is specified as API 14 (i.e. Android 4.0) when a new case is created, and will not appear appcompat_v7. It was initially thought that the new version would be compatible with the older version of Android (ie, Android 4.0).


Do now, technology just to change life!

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

APPCOMPAT_V7 caused by the new Android project compiled but the problem

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.