【问题标题】:Android studio 0.5.9: 2 annoying Gradle warningsAndroid Studio 0.5.9:2 个恼人的 Gradle 警告
【发布时间】:2014-06-02 10:04:50
【问题描述】:

我已升级到 Android Studio 0.5.9,但总是收到以下警告:

Configuration on demand is an incubating feature.
Relying on packaging to define the extension of the main artifact has been deprecated and is scheduled to be removed in Gradle 2.0

有什么我应该做的吗?如果没有,我可以禁用它们吗?

【问题讨论】:

标签: android gradle android-studio


【解决方案1】:

Gradle incubating feature 上搜索会得到this page

C.1.2。孵化

在孵化状态中引入功能以允许现实世界 在公开之前将反馈纳入功能 并锁定以提供向后兼容性。它也给 愿意接受未来潜在变化的用户提前访问 到该功能,以便他们可以立即投入使用。

处于孵化状态的功能可能会在未来的 Gradle 版本中发生变化 直到不再孵化。孵化功能的变化 Gradle 版本将在发行说明中突出显示 发布。新功能的潜伏期取决于 功能的范围、复杂性和性质。

孵化中的特征被清楚地表明是这样的。在源 代码,所有正在孵化的方法/属性/类都有注释 with Incubating,也用于在 DSL 中专门标记它们 和 API 参考。如果此用户讨论了孵化功能 指导,会明确表示处于孵化状态。


搜索Relying on packaging to define the extension of the main artifact has been deprecated and is scheduled to be removed in Gradle 2.0 会导致这个问题,正如@shayan pourvatan 所说:

Gradle deprecation "Relying on packaging to define the extension of the main artifact..." in Android Studio project can be fixed?

还有this issue,最后是这样说的:

基于http://forums.gradle.org/gradle/topics/jhuxhorn_googlemail_com-zal6c,Gradleware 团队的一名成员表示“目前无法绕过警告,但警告是虚假的。”

所以我们现在无能为力。

【讨论】:

    猜你喜欢
    • 2010-12-12
    • 2016-12-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-07-16
    相关资源
    最近更新 更多