Cannot find symbol using Log.d() to Debug

The code I added is :

  
Log.d("jerikc", ringtone.getTitle()); 


When I compile the Setting module,there is the error :

          
:cannot find symbol
symbol:method d(java.lang.String, java.lang.CharSequence)
Location:class android.util.Log
                        Log.d("jerikc", ringtone.getTitle) 


solution:
     set the second parameter of function Log.d() to CharSequence.
     Like this:
            
Log.d("jerikc", ringtone.getTitle().toString());


It's OK..

你可能感兴趣的:(Cannot find symbol using Log.d() to Debug)