uni_links icon indicating copy to clipboard operation
uni_links copied to clipboard

UniLinksPlugin.java uses or overrides a deprecated API

Open YumanYIN opened this issue 3 years ago • 3 comments

I'm using uni_links 0.5.1 and am building APK (android).

There is a red note of Flutter: Note: /Users/yinyuman/flutter/.pub-cache/hosted/pub.dartlang.org/uni_links-0.5.1/android/src/main/java/name/avioli/unilinks/UniLinksPlugin.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.

Is that important? Can you update this API? Thanks so much.

YumanYIN avatar Aug 26 '21 08:08 YumanYIN

I have the same problem.

majidbagheri66 avatar Nov 01 '21 06:11 majidbagheri66

Is there any chance to get it fixed?

RettPop avatar Feb 13 '22 12:02 RettPop

I had a closer look using this approach: https://stackoverflow.com/questions/49711773/how-to-recompile-with-xlintdeprecation Then flutter run shows:

2 warnings
/home/user/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/uni_links-0.5.1/android/src/main/java/name/avioli/unilinks/UniLinksPlugin.java:84: warning: [deprecation] Registrar in PluginRegistry has been deprecated
    public static void registerWith(@NonNull PluginRegistry.Registrar registrar) {
                                                           ^
1 warning

But I don't know how to fix this...

Anyways, it's just a warning, not an error for the app we are building.

amenk avatar Sep 03 '22 13:09 amenk