-
Notifications
You must be signed in to change notification settings - Fork 446
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
can not work on flutter 2.5,about Android V2 embedding #186
Comments
The plugins `image_gallery_saver use a deprecated version of the Android embedding. |
完了,上次作者提交代码都是四月的事了.我看八天前分支里有人已经修正了该错误,请求作者进行合并到master,但是一直没有动静. |
I am getting this warning, |
你好,我不懂英语.这个错误非常严重,是因为库使用了过时的API,而Flutter2.5已经完全删除了.根据你的截图,有好几个库都出现了这个问题,需要等作者来修改才行.本库的解决方案是,替换掉对应的文件,以下代码
|
Thanks for your response :) |
Where do we put this code replace it ? |
Hi! I just checked the github code and it looks like the v2 embedding was indeed implemented. We should only have to wait for a new version. It's been 19 days since the fix though. The fix is even older than this report. Another option is to reference the git project like this:
Just tested it, and the warning dissapears. |
I can confirm. After trying this, it did work as intended. |
Version |
The plugin
image_gallery_saver
uses a deprecated version of the Android embedding.To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.
The text was updated successfully, but these errors were encountered: