Why Android change 'compile' to 'implementation' configuration in Gradle dependencies?

后端 未结 2 1946
猫巷女王i
猫巷女王i 2021-01-04 03:16

As seen in Android Studio 3.0 (canary 3.0), we now add depedencies by declaring implementation instead of compile configuration.

2条回答
  •  一生所求
    2021-01-04 04:06

    It seems like compile has been deprecated and api or implementation should be used instead. According to The Java Library Plugin - Gradle User Guide Version 3.5:

    The compile configuration still exists but should not be used as it will not offer the guarantees that the api and implementation configurations provide.

提交回复
热议问题