I want to build an apk and inside it I need to use release aar inside it. The aar must be release build since I need to shrink and obfuscate it.
But I would like to print the log for network log to see if my obfuscation will not bother the request payload.
I tried to use System.out.println, but I could not see any log from aar.
Any suggestions?
You should be able to turn it on in the
manifest/build.gradle. Enable LogCat on Release Build in Android StudioThere have been a few changes to it over the years so you may have to look at more than the accepted answer.
You can also use this library https://github.com/tony19/logback-android
It can create log files on the device, that you can open and inspect.