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 2.5 error pub get #98

Closed
amebrahimi opened this issue Sep 14, 2021 · 8 comments
Closed

Flutter 2.5 error pub get #98

amebrahimi opened this issue Sep 14, 2021 · 8 comments

Comments

@amebrahimi
Copy link

When trying to pub get android 2.5 there is a problem which is

The plugin `agora_rtm` 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.
@LichKing-2234
Copy link
Collaborator

Do you mean Flutter 2.5?

@LichKing-2234
Copy link
Collaborator

Seem like it is a warning. I will plan to upgrade it to v2.

@amebrahimi
Copy link
Author

@LichKing-2234 Yes It's not a warning it wont let me do pub get

@xOldeVx
Copy link

xOldeVx commented Sep 22, 2021

same problem, I can't use rtm anymore, any date to update?

@panchalAlpit
Copy link

How can I fix this issue?it's working in android but when I want to update the pod at that time I'm getting the same issue.

@panchalAlpit
Copy link

panchalAlpit commented Sep 27, 2021

@LichKing-2234 Below line I have added. but getting error "Execution failed for task ':agora_rtm:compileDebugKotlin'",

Added:- GeneratedPluginRegistrant.registerWith(this).

agora_rtm: ^1.0.1

@LichKing-2234
Copy link
Collaborator

@panchalAlpit you should not add GeneratedPluginRegistrant.registerWith(this) when using v2.

@panchalAlpit
Copy link

After upgrade the plugin it's working.

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

4 participants