imei_plugin
imei_plugin copied to clipboard
\ImeiPlugin.java uses or overrides a deprecated API.
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.
Same problem for me
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
Same problem here too :"((
Alguém conseguiu resolver?