草庐IT

obsolete

全部标签

kotlin - 警告 : API 'variant.getPackageLibrary()' is obsolete and has been replaced with 'variant.getPackageLibraryProvider()'

我刚刚将kotlin更新到1.3.30,现在在同步gradle时出现此错误:WARNING:API'variant.getPackageLibrary()'isobsoleteandhasbeenreplacedwith'variant.getPackageLibraryProvider()'.Itwillberemovedattheendof2019.Formoreinformation,seehttps://d.android.com/r/tools/task-configuration-avoidance.Todeterminewhatiscallingvariant.getPa

android - 仍然收到警告 : Configuration 'compile' is obsolete and has been replaced with 'implementation'

我已在我的项目的build.gradle中将每次出现的compile替换为implementation,但我仍然收到此警告:我试图在整个项目中寻找“编译”,但没有找到匹配项。那么可能是什么原因呢? 最佳答案 我已将com.google.gms:google-services从3.1.1更新为3.2.0并且警告不再出现.buildscript{repositories{google()jcenter()}dependencies{classpath'com.android.tools.build:gradle:3.1.0'//NOTE

android - 仍然收到警告 : Configuration 'compile' is obsolete and has been replaced with 'implementation'

我已在我的项目的build.gradle中将每次出现的compile替换为implementation,但我仍然收到此警告:我试图在整个项目中寻找“编译”,但没有找到匹配项。那么可能是什么原因呢? 最佳答案 我已将com.google.gms:google-services从3.1.1更新为3.2.0并且警告不再出现.buildscript{repositories{google()jcenter()}dependencies{classpath'com.android.tools.build:gradle:3.1.0'//NOTE