logging - Android Studio Displaying to log error -


i trying display message log in android studio. use log.d(), gives me error: cannot resolve method d(). find strange because used before. maybe missing obvious.

try like:

log.d("debug", "some text"); 

log.d stands debug. make sure import log class.

import android.util.log; 

you can import automatically holding alt key enter.

check this: http://developer.android.com/reference/android/util/log.html


Comments

Popular posts from this blog

php - Admin SDK -- get information about the group -

javascript - Updating a Nested Array with MongoDB -

c# - PHP script ,MySQL -