为什么Eclipse将自动添加appcompat V7库的支持,每当我创建一个新的项目? [英] Why does eclipse automatically add appcompat v7 library support whenever I create a new project?

查看:217
本文介绍了为什么Eclipse将自动添加appcompat V7库的支持,每当我创建一个新的项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么会自动添加Eclipse appcompat V7 库支持,每当我创建一个新项目。我创建一个简单的项目,其 MainActivity 应扩展活动,但事实并非如此。 Eclipse中自动添加操作栏支持。

Why does eclipse automatically add appcompat v7 library support whenever I create a new project. I am creating a simple project whose MainActivity should extend Activity but it does not. Eclipse automatically adds action bar support.

有人可以帮我创建无 appcompat 库一个简单的项目?仅供参考我已经下载了ADT的最新版本的一切最新更新。我使用的是Window 7 64位系统。

Can somebody help me create a simple project without the appcompat library? FYI I have downloaded the latest version of ADT with everything updated recently. I am using Window 7 x64.

推荐答案

作为Android的支持库概述,它被认为是很好的做法,包括由于设备的大型多样性和不同Android版本之间存在(和所提供的API,因此,)的碎片默认支持库。

As stated in Android's Support Library Overview, it is considered good practice to include the support library by default because of the large diversity of devices and the fragmentation that exists between the different versions of Android (and thus, of the provided APIs).

这就是为什么Android的 code模板工具可通过<$包含在Eclipse的原因C $ C> Android开发工具(ADT)默认情况下,它们集成在一起。

This is the reason why Android code templates tools included in Eclipse through the Android Development Tools (ADT) integrate them by default.

我注意到,你的目标 API 15 在你的样品,但对你的包的miminum所需的SDK是 API 10 ,的量,兼容性库可以提供的向后兼容的API巨大量。一个例子是使用能力片段API 这appeard对 API 11 (安卓3.0蜂巢)的运行该系统的早期版本。在设备上

I noted that you target API 15 in your sample, but the miminum required SDK for your package is API 10, for which the compatibility libraries can provide a tremendous amount of backward compatible APIs. An example would be the ability of using the Fragment API which appeard on API 11 (Android 3.0 Honeycomb) on a device that runs an older version of this system.

这也是要注意的是,你可以停用自动加上的支持库的默认。

It is also to be noted that you can deactivate automatic inclusion of the Support Library by default.

这篇关于为什么Eclipse将自动添加appcompat V7库的支持,每当我创建一个新的项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆