Flutter旧代码升级或从gitee/github下载的代码执行flutter pub get时经常会出现下面的问题,这里记录下解决办法。
问题:
The plugins `permission_handler, shared_preferences` use a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if these plugins support the Android V2 embedding. Otherwise, consider removing them since a future release of Flutter will remove these deprecated APIs.
解决办法:
flutter pub upgrade --major-versions
本文介绍了在使用Flutter进行开发时遇到的旧版本插件不兼容问题及其解决方案。针对permission_handler和shared_preferences等插件使用了过时的Android嵌入方式导致的错误,提供了一个简单实用的命令帮助开发者进行版本更新。
1479

被折叠的 条评论
为什么被折叠?



