Timber logs are not visible in Android Studio Dolphin 2021.3.1
Log Statements
Timber.d("onCreateViewCalled using Timber") Log.d("Login", "onCreateViewCalled using Log")
OUTPUT
Only the Log library logs are visible and not the Timber ones.
2
I have solved the issue by enabling Use libusb backend. Navigate to Android Studio -> Preferences -> Build, Execution, Deployment -> Debugger -> then check Use libusb backend
Use libusb backend
Added this for future reference
You have to plant a timber debug tree by initializing Timber in the Application Class:
Timber
Application
class MyApplication : Application() { override fun onCreate() { super.onCreate() if(BuildConfig.DEBUG){ Timber.plant(Timber.DebugTree()) } } }
Add the MyApplication class to the AndroidManifest.xml like below:
AndroidManifest.xml
<application android:name=".MyApplication"> ... </application>
Click here to cancel reply.
2
Answers
I have solved the issue by enabling
Use libusb backend
. Navigate toAndroid Studio -> Preferences -> Build, Execution, Deployment -> Debugger -> then check
Use libusb backend
Added this for future reference
You have to plant a timber debug tree by initializing
Timber
in theApplication
Class:Add the MyApplication class to the
AndroidManifest.xml
like below: