Closed BrightVan closed 2 years ago
@BrightVan 我也遇到了和你一样的问题,我是暂时把多渠道打包的
//apply plugin: 'channel'
注释掉了,具体解决方案还是要靠他们升级api方案
只是警告而已,能用
我这里直接是停止任务了。
我是可以用的,不知道是不是其他的问题。
额,感觉作者已经不管了。看来要自己动手,丰衣足食了。
不好意思,最近实在太忙,周末我会处理下
+1, 不会影响打包,但是每次sync,make啥的都会触发警告报错,不打包的时候先移除apply:channel就行了
不会影响打包吗?我运行 gradle channelRelease命令不能打出渠道包啊
To determine what is calling variant.getAssemble(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace.
我在AS3.4上咋一直碰不到这个问题呀
To determine what is calling variant.getAssemble(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace.
还是有啊!
WARNING: API 'variant.getPackageLibrary()' is obsolete and has been replaced with 'variant.getPackageLibraryProvider()'. 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.getPackageLibrary(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace. 除了上述的问题外,现在又多了这个问题 Android Studio3.4
我在AS3.4上咋一直碰不到这个问题呀
我的就是android studio3.4,除了上述的提示,还有另外一个提示
same to me
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 more information.
WARNING: API 'variant.getPackageLibrary()' is obsolete and has been replaced with 'variant.getPackageLibraryProvider()'. 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.getPackageLibrary(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace. 除了上述的问题外,现在又多了这个问题 Android Studio3.4
WARNING: API 'variant.getPackageLibrary()' is obsolete and has been replaced with 'variant.getPackageLibraryProvider()'. It will be removed at the end of 2019. For more information, see https://d.android.com/r/tools/task-configuration-avoidance. REASON: The Kotlin plugin is currently calling this API. We are working to solve this. WARNING: Debugging obsolete API calls can take time during configuration. It's recommended to not keep it on at all times.
kotlin的问题,降级或者等kotlin新版本解决
降低Gradle Plugin版本:https://blog.csdn.net/zhijiandedaima/article/details/90718376
classpath 'com.android.tools.build:gradle:3.4.0'
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 more information.
年底了,这个问题还没能解决吗?
打包有问题的可以试下,rebuildChannel,根据安装包生成渠道包,因为同时使用了AndResGuard,所以一直是这样用的,没什么问题。目前这个插件就是用了些废弃的api,用还是可以用的。
AS3.5.2也遇到了这个问题
降级插件版本:https : //blog.csdn.net/zhijiandedaima/article/details/90718376
我都升级了你让我再降低 我是在找虐吗
AS 3.3会有下面的警告:
自己看了下,因该是下面的代码,plugin模块,ApkChannelPackagePlugin文件:
不知其他地方是否还用过这个api.