Reputation: 3
Hear is definition:
public final class BuildConfig {
public static final boolean DEBUG = Boolean.parseBoolean("true");
...
}
And variable definition is :
public static final boolean DEBUG = BuildConfig.DEBUG;
Use
if(DEBUG)
Log.i("TAG","...");
but there is no logs show in Logcat? Wish someome can give some clues
Upvotes: 0
Views: 236
Reputation: 12147
In your Android studio menu settings,
Tools
-> Android
, make sure the item Enable ADB integration
is checked.
Another way to check is using the command line tools.
$ adb logcat -s "TAG"
Upvotes: 1