0

I am developing an app in Android Studio with target for API 22. I have tried to use the Log class with the method d() but I did not find it. The helper shows only Log()...

What am I missing?

David
  • 3,392
  • 3
  • 36
  • 47
MikeB
  • 13
  • 3

1 Answers1

0

Just import the library import android.util.Log;

And just tips: use alt+space and alt+enter feature from Android Studio

Note: Alt + Enter = Project quick fix (show intention actions and quick fixes)

Giovani
  • 175
  • 1
  • 7
Jeems Terry
  • 85
  • 10
  • it doesn't work too. i've forgot to mention it... i'm trying to use couchbase, and apparently there's a conflict with the "log" word – MikeB Jun 02 '15 at 11:05
  • even if couchbase have a library called log, android studio will ask you which one will you use or import. However, if you have to use both Log.d and couchbase log, you should type it manually i think – Jeems Terry Jun 02 '15 at 11:42
  • android studio says about "log.d" "cannot resolve symbol d"... what do you mean with "you should type it manually"? – MikeB Jun 02 '15 at 12:04