安卓工作室 0.5.9 : 2 annoying Gradle warnings

标签 android gradle android-studio

我已经升级到 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

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

最佳答案

谷歌搜索 Gradle 孵化功能 结果 this page :

C.1.2. Incubating

Features are introduced in the incubating state to allow real world feedback to be incorporated into the feature before it is made public and locked down to provide backwards compatibility. It also gives users who are willing to accept potential future changes early access to the feature so they can put it into use immediately.

A feature in an incubating state may change in future Gradle versions until it is no longer incubating. Changes to incubating features for a Gradle release will be highlighted in the release notes for that release. The incubation period for new features varies depending on the scope, complexity and nature of the feature.

Features in incubation are clearly indicated to be so. In the source code, all methods/properties/classes that are incubating are annotated with Incubating, which is also used to specially mark them in the DSL and API references. If an incubating feature is discussed in this User Guide, it will be explicitly said to be in the incubating state.


搜索 Relying on packaging to define extension of the main artifact has been deprecated and is scheduled to 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 ,最后是这样说的:

Based on http://forums.gradle.org/gradle/topics/jhuxhorn_googlemail_com-zal6c a member of the Gradleware team said "There's no way around the warning at the moment, but the warning is bogus."

So there is nothing we can do right now.

关于安卓工作室 0.5.9 : 2 annoying Gradle warnings,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23991988/

相关文章:

hibernate - 使用hibernate-jpamodelgen优化gradle中的 hibernate 元模型生成

gradle - Gradle 构建扫描是否安全?

gradle - Gradle下载完整的依存关系链?

android - 如何将现有的 .so 库添加到 Android Studio 项目中?

git - 可以使用 Android Studio 克隆 TFS 项目

android - 将现有项目文件复制到新的 AndroidStudio Android 项目后出现错误

android - 即使在 android 中使用 Fused Location API 时将上下文传递给 GoogleApiClient,GoogleApiClient 也会给出空指针

android - 如何在 android 2.2 中使用 fragment ?

android - Firebase crashlytics 仍然悬而未决

android - 在 Android 5.0 上的 AppCompat CardView 上以 XML 设置海拔