Skip to content
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

flutter项目 Android打包后的版本,点击分享菜单显示不出来,直接运行到Android手机上的版本分享菜单显示,有人遇到这个问题吗?急需解决。。。 #80

Open
cying112115 opened this issue Jan 12, 2021 · 1 comment

Comments

@cying112115
Copy link

No description provided.

@cying112115
Copy link
Author

cying112115 commented Jan 13, 2021

该问题已经解决!

Flutter从某一个版本后,打包会自动开启混淆代码。ShareSDK已经做了混淆处理,再次混淆会导致不可预期的错误。

解决方案:
1.打包时关闭混淆。
//关闭代码混淆 minifyEnabled false //删除无用代码 useProguard false //代码压缩设置 shrinkResources false //删除无用资源
image

或者 打包时使用命令:flutter build apk --no-shrink 也可关闭混淆。

2.在你的混淆脚本中添加如下的配置,跳过对ShareSDK的混淆操作:
参考官方:
https://www.mob.com/wiki/detailed/?wiki=ShareSDK_Others_Share_Confused&id=undefined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant