【问题标题】:Android Private Libraries does not allow modifications to source attachmentAndroid 私有库不允许修改源附件
【发布时间】:2015-06-20 23:58:53
【问题描述】:

尝试在 android 中使用 googleplayservices 使用 google maps api 时出现以下错误。 我已将 google play services 库添加为依赖项目,并在 android manifest 中也声明了它。

请帮助我,我无法继续,我已经完成了我在 stakeoverflow 中找到的所有可能的解决方案来解决此错误。

错误:

【问题讨论】:

    标签: android


    【解决方案1】:

    官方解决方案是

    允许库中的 3rd 方 jar 的 src/doc 附件/

    自从那些罐子 通过类路径容器动态添加,开发人员不能 通过 Eclipse UI(容器)设置源路径和 javadoc 不允许编辑这些)。为了解决这个问题,并确保两者 路径不仅被当前项目拾取,还被其他项目拾取 projects(如果当前项目是库项目),值为 由 jar 文件旁边的文件设置。该文件的名称后 jar 文件,在末尾添加 .properties。例如 foo.jar -> foo.jar.properties 目前可以包含 2 个属性: src: 源文件夹(或存档)的相对或绝对路径。文档: javadoc 的相对或绝对路径。

    查看以下问题了解更多详情 The Jar of this class file belongs to container 'Android Dependencies' which does not allow modifications to source attachments on its entries

    【讨论】:

    • 感谢@Ameer,但我在添加 google-play-services 时遇到此错误。谷歌播放服务没有 javadoc,所以我不能将它添加到类路径文件中。请帮我解决这个错误。我已经尝试了 stakeoverflow 中的所有答案,但没有任何效果。
    • 从 Android SDK 管理器更新您的 googleplayservices 库
    • stackoverflow.com/questions/12628439/…你检查过这个解决方案吗
    猜你喜欢
    • 2011-01-18
    • 1970-01-01
    • 2013-05-10
    • 2012-04-21
    • 2015-04-15
    • 2019-06-13
    • 2013-09-27
    • 2018-10-09
    • 1970-01-01
    相关资源
    最近更新 更多