33

我一直在阅读 Android 支持库的文档,但是虽然它明确表示你应该将它包含在你的 Android 项目中,但它没有提到任何关于库本身的许可证(目前唯一的许可证通知适用到文档页面的内容,而不是它描述的代码)。Eclipse 吐出的副本也不包含任何许可信息,对 Google 的查询大多只是链接回相同的文档页面。

这让我很困惑。我应该包含代码来自 Google 的通知吗?根本没有放任何许可证通知?还是我没有正确理解该库的使用方式?诚然,我对 Android 开发还很陌生。

4

3 回答 3

20

每个源文件(像这个)都包含一个版权标题,如下所示:

/*
 * Copyright (C) 2011 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

其中声明了 Apache 许可证:

http://www.apache.org/licenses/LICENSE-2.0

而且,我认为 apache 许可证允许构建和销售衍生作品。不过,您应该:

  1. 在衍生产品的源代码中也包括相同的许可证。
  2. 清楚地说明您基于哪些部分进行了更改。

您可以将其放置在项目的根目录中Licence.txtReadme.txt根目录中。

于 2013-08-15T17:06:08.380 回答
5

查看 android/support 文件夹中的 NOTICE.txt 文件。引用:“Android 开源项目。在 Apache 许可证下获得许可,版本 2.0,[...],http://www.apache.org/licenses/ ”。

于 2013-08-15T17:08:37.933 回答
3

查看此文件(支持库的本地 Maven 存储库是此路径的子集):

https://android.googlesource.com/platform/prebuilts/maven_repo/android/+/master/NOTICE.txt

请注意此文件夹中的所有文件。

…</p>

版权所有 (c) 2005-2013,Android 开源项目

…</p>

Apache 许可证 2.0 版,2004 年 1 月

…</p>

于 2018-10-27T07:46:06.830 回答