Deprecated Warning
Closed this issue · 1 comments
Tokenyet commented
I'm not sure If this should be reported. But I cannot figure out how this happened. All the codes seem to be right under Build.VERSION.SDK_INT
. Is there anyway to omit the warning or change the code to suppress It? I used SuppressLint
, but It seems to be no relation on this issue.
.pub-cache\hosted\pub.dartlang.org\vibration-1.0.2\android\src\main\java\com\benjaminabel\vibration\VibrationPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Edit:
.pub-cache\hosted\pub.dartlang.org\vibration-1.0.2\android\src\main\java\com\benjaminabel\vibration\VibrationPlugin.java:37: warning: [deprecation] vibrate(long) in Vibrator has been deprecated
vibrator.vibrate(duration);
^
.pub-cache\hosted\pub.dartlang.org\vibration-1.0.2\android\src\main\java\com\benjaminabel\vibration\VibrationPlugin.java:54: warning: [deprecation] vibrate(long[],int) in Vibrator has been deprecated
vibrator.vibrate(patternLong, repeat);
^
2 warnings
This is the details extracted, but this seems to be correct in Logic...um....
Tokenyet commented
Solved by using @SuppressWarnings("deprecation")
. I have no idea why @SuppressLint("Deprecated")
is not working.
There is also a list for SuppressLint
provided by @akselwillgert in stackoverflow.