1. Are you ready for the Galaxy S20? Here is everything we know so far!

Log method error

Discussion in 'Android Development' started by JAYME CUNHA, Feb 26, 2016.

  1. JAYME CUNHA

    JAYME CUNHA Lurker
    Thread Starter

    I don't know what is going on with the Log method, I've been using it normally and now I have a project in which it doesn't work at all.

    android.utils.Log is imported already but when I go and type in Log.i, Log.d, Log.e, anything, it says it cannot resolve symbol 'i' or whatever else I try.

    Please help! I can't find the answer anywhere... :(

    Thanks!
     


    Maigi likes this.
  2. scary alien

    scary alien not really so scary
    Moderator

    Welcome to our AndroidForums, @JAYME CUNHA :).

    I've moved your post over here to our Application Development area for you.

    I believe the proper import is actually "android.util.Log" and not "android.utils.Log" (don't know if that was a typo or is the actual issue here).

    Cheers!
     
  3. JAYME CUNHA

    JAYME CUNHA Lurker
    Thread Starter

    Hi scary alien, thanks!
    I wish this was a typo, lol
     
    scary alien likes this.
  4. JAYME CUNHA

    JAYME CUNHA Lurker
    Thread Starter

    Nevermind! I found the error, I was putting it outside the onCreate method... -_-
    m'bad
    Thnks anyways!
     
    scary alien likes this.
Loading...

Share This Page

Loading...