-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
请注意每个插件apk构建时都需要apply plugin: 'com.tencent.shadow.plugin' #871
Comments
你这在自己仓库下搞呀,发到公有仓库干什么。。。 |
问题的原因是你添加flavorDimensions时把Shadow自动添加的给覆盖掉了。 所以这样修改就可以了: 刚刚也新增了这种情况的提示检查: |
原来是这样,感谢大佬!! |
按大佬你这个改了下,发现还是会报这个错误。研究了下,按你给出的那个思路,猜测应该还是把shadow自动添加的给覆盖了。这样写 productFlavors 就没问题了
引入 flavorDimensions 之后,关键在于 productFlavors 中不能用 plugin 来作为一个渠道。否则会覆盖 shadow 的渠道,package 出来之后,还是会提示 ”请注意每个插件apk构建时都需要apply plugin: 'com.tencent.shadow.plugin' “ 或者这样写也可以:
去掉 flavorDimensions 的情况下,可以在 productFlavors 中写 plugin 渠道。 |
我在自己写的Demo时,启动插件时爆出了这个问题。
代码 pr 上来了。 大佬帮我看看。 搞了两天了。 还是没搞定。
代码在 sample 目录下面。 是一个单独的 Project 。 是通过maven依赖的方式, shadow是最新的shadow sdk 源码编译到本地maven 仓库的。
The text was updated successfully, but these errors were encountered: