imei_plugin icon indicating copy to clipboard operation
imei_plugin copied to clipboard

\ImeiPlugin.java uses or overrides a deprecated API.

Open s2yed opened this issue 4 years ago • 4 comments

Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Note: C:\Users\pc\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\imei_plugin-1.1.6\android\src\main\java\com\rioapp\demo\imeiplugin\ImeiPlugin.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.

s2yed avatar Sep 09 '20 11:09 s2yed

Same problem for me

rktvsiim avatar Sep 21 '20 11:09 rktvsiim

I recompile with -Xlint:deprecation and showed this:

flutter/.pub-cache/hosted/pub.dartlang.org/imei_plugin-1.2.0/android/src/main/java/com/rioapp/demo/imeiplugin/ImeiPlugin.java:70: warning: [deprecation] getDeviceId() in TelephonyManager has been deprecated
                    result.success( telephonyManager.getDeviceId() );
                                                    ^
flutter/.pub-cache/hosted/pub.dartlang.org/imei_plugin-1.2.0/android/src/main/java/com/rioapp/demo/imeiplugin/ImeiPlugin.java:102: warning: [deprecation] getDeviceId(int) in TelephonyManager has been deprecated
                            imeis.add(telephonyManager.getDeviceId(i));

                                                      ^
flutter/.pub-cache/hosted/pub.dartlang.org/imei_plugin-1.2.0/android/src/main/java/com/rioapp/demo/imeiplugin/ImeiPlugin.java:106: warning: [deprecation] getDeviceId() in TelephonyManager has been deprecated

                    result.success( Arrays.asList(telephonyManager.getDeviceId()) );
                                                                  ^
3 warnings

pedroIgnacioM avatar Feb 09 '21 22:02 pedroIgnacioM

Same problem here too :"((

WaheedHussainHaans avatar Feb 21 '21 17:02 WaheedHussainHaans

Alguém conseguiu resolver?

lsalomao avatar Feb 22 '21 23:02 lsalomao