更新插件后的警告
Warnings after updating plugin
更新插件和我的应用程序级别后,我收到这些警告
配置 'compile' 已过时,已替换为 'implementation' 和 'api'。
配置 'androidTestCompile' 已过时,已替换为 'androidTestImplementation' 和 'androidTestApi'。
配置 'androidTestApi' 已过时,已替换为 'androidTestImplementation'。
配置 'testCompile' 已过时,已替换为 'testImplementation' 和 'testApi'。
配置 'testApi' 已过时,已替换为 'testImplementation'。
我该如何解决这些问题?
您只需在模块应用程序的 'Build.Gradle' 中将 'compile' 更改为 'implementation'。
更新插件和我的应用程序级别后,我收到这些警告
配置 'compile' 已过时,已替换为 'implementation' 和 'api'。
配置 'androidTestCompile' 已过时,已替换为 'androidTestImplementation' 和 'androidTestApi'。
配置 'androidTestApi' 已过时,已替换为 'androidTestImplementation'。
配置 'testCompile' 已过时,已替换为 'testImplementation' 和 'testApi'。
配置 'testApi' 已过时,已替换为 'testImplementation'。
我该如何解决这些问题?
您只需在模块应用程序的 'Build.Gradle' 中将 'compile' 更改为 'implementation'。