Meituan-Dianping / walle

Android Signature V2 Scheme签名下的新一代渠道包打包神器
Apache License 2.0
6.78k stars 1.08k forks source link

Gradle-plugin 3.3.0 variant.assemble 过期警告 #276

Open ongakuer opened 5 years ago

ongakuer commented 5 years ago

升级到 Android Studio 3.3 和 gradle-plugin 3.3.0 后编译出现警告

API 'variant.getAssemble()' is obsolete and has been replaced with 'variant.getAssembleProvider()'.

调用 variant.assemble 的地方推荐改成 variant.assembleProvider

yinanwang1 commented 5 years ago

WARNING: API 'variant.getAssemble()' is obsolete and has been replaced with 'variant.getAssembleProvider()'. It will be removed at the end of 2019. For more information, see https://d.android.com/r/tools/task-configuration-avoidance. To determine what is calling variant.getAssemble(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace. Affected Modules: app

碰到相同的问题。 希望能够升级下。看着揪心。

zyallday commented 5 years ago

variant.assembleProvider.configure { //doing something }

tongxiansheng commented 5 years ago

同遇到这个警告了

miloDev-android commented 5 years ago

同样遇到这个问题,希望升级

YouthLee commented 5 years ago

同样遇到这个问题,希望升级,不然gradle升级到5.0就gg了

puyang1017 commented 5 years ago

同样问题 希望尽快升级

ZakAnun commented 5 years ago

同样遇到这个问题,希望升级

iskyfei commented 5 years ago

Temporary solution!

期望美团早点把这个问题改过来

ongakuer commented 5 years ago

@iskyfei 只是个升级警告,没有必要降级,强行降级可能导致 IDE 和 gradle 插件不兼容。

另外,gradle新旧版本兼容方法例如:

if (variant.hasProperty('assembleProvider')) {
    variant.assembleProvider.get()
} else {
    variant.assemble
}
ikkyu0319 commented 5 years ago

API 'variant.getAssemble()' is obsolete and has been replaced with 'variant.getAssembleProvider()'.

+1

fengjuan commented 5 years ago

同样问题 希望尽快升级

WFCN commented 5 years ago

希望给解决下 感谢美团大佬们

tmacbo commented 5 years ago

希望能快点发新版解决这个问题!

youlookwhat commented 4 years ago

还会维护不?

luochengyeyu commented 4 years ago

难道停止维护了?

yinanwang1 commented 4 years ago

在Android Studio4.0使用walle打包出来的apk包,不能在android10上安装。

ongakuer commented 4 years ago

@yinanwang1 呃,顺便回答一下,打包以后可以再用下面的命令行工具重新设置渠道。 walle-cli-all.jar.zip

貌似是从这里下载的 https://github.com/Meituan-Dianping/walle/issues/326

yinanwang1 commented 4 years ago

@ongakuer 谢谢提醒。 嗯嗯 使用这个jar然后进行命令执行重新多渠道打包,得到的包支持V1,V2和V3,在android10上可以安装。666