BuildConfig.DEBUG always return false
Check imports in the class, make sure you are using correct BuildConfig path. You may use BuildConfig not from your app, but from some library.
Check imports in the class, make sure you are using correct BuildConfig path. You may use BuildConfig not from your app, but from some library.
You can disable it if you so choose. In Android Studio, Analyze->Inspect Code. Under Inspection Profile, click on the button with the 3 horizontal dots. The following window should open. Search for “log” and uncheck “Too Long Log Tags”. Update: Android Studio 2.2, it is located under Android Lint: Correctness
I find a far easier solution is to forget all the if checks all over the place and just use ProGuard to strip out any Log.d() or Log.v() method calls when we call our Ant release target. That way, we always have the debug info being output for regular builds and don’t have to make … Read more