Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove "Using Log instead of Timber" warning in Android Studio?

I added a couple dependencies to my Android project (both mapbox-related, I believe), and now I'm getting the following warning in my code:

enter image description here

enter image description here

How can I remove all warnings of this? I'm aware I can add @SuppressLint to remove warnings for this function but I want to remove all of these warnings from my app.

like image 565
Zorgan Avatar asked Jul 10 '19 11:07

Zorgan


People also ask

What is the use of log in Android Studio?

The Logcat window in Android Studio displays system messages, such as when a garbage collection occurs, and messages that you added to your app with the Log class. It displays messages in real time and keeps a history so you can view older messages.

Where are Android studio logs stored?

log . When running Studio locally, you can find it under tools/idea/system/log .

What is a log in Android?

The Android logging system provides a mechanism for collecting and viewing system debug output. Logcat dumps a log of system messages, which include things such as stack traces when the emulator throws an error and messages that you have written from your application by using the Log class.


1 Answers

Go to Android Studio Preferences.

enter image description here

Go to Editor -> Inspections -> Lint

enter image description here

Then search for Timber and uncheck "Logging call to Log instead of Timber" enter image description here

Be aware that this will turn off this lint check for all of your projects

like image 148
MidasLefko Avatar answered Sep 17 '22 16:09

MidasLefko