Android Studio 4.1 suggests avoiding using android.media.exifinterface
and using android.support.media.exifinterface
instead. We may want to suppress it, e.g., if the project has min SDK API 24, and it is known that android.media.exifinterface
is fine for API 24 and above.
Android Studio's context menu gives Add @SuppressLint("ExifInterface")
but nothing happens on clicking that. Adding @SuppressLint("ExifInterface")
in several places (trying one at a time, of course) doesn't work, e.g.,
- the line immediately above the
import android.media.exifinterface;
statement - the line before the
package
line at the top of the whole file
Where is the right place to add this @SuppressLint annotation?