1. Download our Official Android App: Forums for Android!

Apps Log method error

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

  1. JAYME CUNHA

    JAYME CUNHA Lurker
    Thread Starter
    Rank:
    None
    Points:
    6
    Posts:
    3
    Joined:
    Feb 26, 2016

    Feb 26, 2016
    3
    3
    6
    Male
    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!
     

    Advertisement

    Maigi likes this.
  2. scary alien

    scary alien not really so scary
    Moderator
    Rank:
     #9
    Points:
    2,138
    Posts:
    22,319
    Joined:
    Mar 5, 2010

    Mar 5, 2010
    22,319
    23,814
    2,138
    Male
    space alien ;)
    Indy
    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
    Rank:
    None
    Points:
    6
    Posts:
    3
    Joined:
    Feb 26, 2016

    Feb 26, 2016
    3
    3
    6
    Male
    Hi scary alien, thanks!
    I wish this was a typo, lol
     
    scary alien likes this.
  4. JAYME CUNHA

    JAYME CUNHA Lurker
    Thread Starter
    Rank:
    None
    Points:
    6
    Posts:
    3
    Joined:
    Feb 26, 2016

    Feb 26, 2016
    3
    3
    6
    Male
    Nevermind! I found the error, I was putting it outside the onCreate method... -_-
    m'bad
    Thnks anyways!
     
    scary alien likes this.

Share This Page

Loading...