What does the Message “relying on packaging to def

2019-02-16 08:29发布

问题:

my gradle build outputs the message

Deprecated: relying on packaging to define the extension of the main artifact is deprecated, and will not be supported in a future version of Gradle.

What does this mean and how to make the warning go away?

回答1:

It is saying you depend on some artefact of a type that it does not know about but that it can find by using the "packaging" attribute of the pom. There are enhancements planned here and they are described here.



回答2:

How to solve this issue is discussed there: http://forums.gradle.org/gradle/topics/jhuxhorn_googlemail_com-zal6c

For now, no solution, the warning is said to be 'bugged'.



回答3:

It seems there is currently no fix for the issue. The bug has been filed here: https://code.google.com/p/android/issues/detail?id=65501



标签: gradle