0

I moved my Eclispe project to Android Studio, but it outputs a lot of deprecated errors when built. I tried some methods, but they don't work.

enter image description here

Cindy Meister
  • 25,071
  • 21
  • 34
  • 43
TIANYUAN LI
  • 1
  • 1
  • 2

1 Answers1

3

Try placing this at the top of the methods:

@SuppressWarnings("deprecation")

Example

@SuppressWarnings("deprecation")
public void testMethod(){
...
}

For a brief explaination go to this link:

https://stackoverflow.com/questions/7397996/what-is-suppresswarningsdeprecation-and-unused-in-android

Update:

It seems that there is also some known issues with deprecations. You might want to read this for more info:

stackoverflow.com/questions/26921774/how-to-avoid-deprecation-warnings-when-suppresswarningsdeprecation-doesnt

Dr.jacky
  • 3,341
  • 6
  • 53
  • 91
Twahanz
  • 204
  • 1
  • 15