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.

    1. Download the Forums for Android™ app!


      Download

       
  2. scary alien

    scary alien not really so scary
    VIP Member

    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...
Similar Threads - Log method error
  1. Cotzie
    Replies:
    3
    Views:
    259
  2. riyas21
    Replies:
    0
    Views:
    367
  3. Vekgib
    Replies:
    8
    Views:
    462
  4. ScottInWales
    Replies:
    2
    Views:
    455
  5. kumaranil13k
    Replies:
    1
    Views:
    432
  6. Nikhil Agrawal
    Replies:
    0
    Views:
    794
  7. ukiltmybrutha
    Replies:
    2
    Views:
    498
  8. neilpaku
    Replies:
    7
    Views:
    1,797
  9. Mark65
    Replies:
    7
    Views:
    674
  10. bostonpartykid
    Replies:
    9
    Views:
    788

Share This Page

Loading...