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.
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.
On
Added this for future reference
You have to plant a timber debug tree by initializing Timber in the Application Class:
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:
<application
android:name=".MyApplication">
...
</application>
I have solved the issue by enabling
Use libusb backend. Navigate to Android Studio -> Preferences -> Build, Execution, Deployment -> Debugger -> then checkUse libusb backend