首页 > TAG信息列表 > variantOutput

编译时出现 'variantOutput.getProcessResources()' 过时第三方组件解决方法

很多引用 butterknife 出现如下   WARNING: API 'variantOutput.getProcessResources()' is obsolete and has been replaced with 'variantOutput.getProcessResourcesProvider()'. It will be removed at the end of 2019.For more information, see https://

AndroidStudio更新3.4踩坑之“API 'variantOutput.getPackageApplication()' is obsolete”

  as最近更新了3.4,根据使用as这些年的经验,每次更新除了新功能,总附带些莫名其妙的问题。所以看到升级弹窗,我是拒绝的。 但谷歌总能把新功能写的exciting,于是手抖点了update。接着下载、更新、 构建、一气呵---------那个warning是什么鬼: ‘API 'variantOutput.getPackageApplicati

API 'variantOutput.getPackageApplication()' is obsolete and has been replaced 解决方案

原代码: applicationVariants.all { //判断是release还是debug版本 def buildType = it.buildType.name def fileName //下面的channel是获取渠道号,每个人定义的渠道号可能不一样。具体可以用println it.productFlavors[0]