Linxiang Liu
Linxiang Liu

Reputation: 3

Android logs does not show in android studio logcat window

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

Answers (2)

loadjang
loadjang

Reputation: 327

you DEBUG is true?

or

Computer restart again or

adb restart agin

Upvotes: 0

alijandro
alijandro

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

Related Questions