[2.1] Importing Projects into Eclipse

Discussion in 'Tutorials' started by Vas, Oct 7, 2012.

  1. Vas Origin

    Member Since:
    Jan 4, 2012
    Message Count:
    770
    Likes Received:
    175
    Trophy Points:
    500
  2. pete New Guy

    Member Since:
    Jan 18, 2013
    Message Count:
    43
    Likes Received:
    1
    Trophy Points:
    0
    I have 6 Warnings when trying to import a project into Eclipse.

    Description Resource Path Location Type
    The import android.graphics.RectF is never used SBLiveWallpaper.java /Retro Circle LWP/src/Design101/retrocircleslwp line 14 Java Problem
    The import android.preference.PreferenceCategory is never used SBLiveWallpaper.java /Retro Circle LWP/src/Design101/retrocircleslwp line 17 Java Problem
    The value of the field SBLiveWallpaper.LwpEngine.mDisplayMetrics is not used SBLiveWallpaper.java /Retro Circle LWP/src/Design101/retrocircleslwp line 72 Java Problem
    The import android.graphics.RectF is never used Pop_Item.java /Retro Circle LWP/src/Design101/retrocircleslwp line 8 Java Problem
    The value of the field Pop_Item.textOffset is not used Pop_Item.java /Retro Circle LWP/src/Design101/retrocircleslwp line 25 Java Problem
    The value of the field LiveWallpaperSettings.mCounter_settings is not used LiveWallpaperSettings.java /Retro Circle LWP/src/Design101/retrocircleslwp line 12 Java Problem

    Here's what I did in terms of setting up the Eclipse environment:

    I downloaded and extracted Eclipse. When you go on: http://www.eclipse.org/downloads/ I downloaded the 3rd eclipse from the list
    Eclipse IDE for Java Developers, 150 MB

    I then installed the ADT Plugin from here :
    http://developer.android.com/sdk/installing/installing-adt.html

    When I restarted Eclipse after plugin install it did not provide option to enter path to SDK Directory - could this be the problem?

    Your guidance much appreciated!


  3. Krekerpl New Guy

    Member Since:
    Jan 18, 2013
    Message Count:
    7
    Likes Received:
    2
    Trophy Points:
    0
    In Eclipse Window -> Preferences

    Find Android and enter SDK location in path

    [IMG]
  4. pete New Guy

    Member Since:
    Jan 18, 2013
    Message Count:
    43
    Likes Received:
    1
    Trophy Points:
    0
    Thank you. I checked the preferences as you show but they are correct.

    So do you have any ideas why I have those six warnings and if they are significant and something I need to worry about?
  5. Krekerpl New Guy

    Member Since:
    Jan 18, 2013
    Message Count:
    7
    Likes Received:
    2
    Trophy Points:
    0
    Don't worry. That is Eclipse telling you that item are never used in app but it is imported.
    On my wallpaper and other always have that info. I compile and run and everything working fine

    [IMG]
  6. pete New Guy

    Member Since:
    Jan 18, 2013
    Message Count:
    43
    Likes Received:
    1
    Trophy Points:
    0
    Thank you. That's a worry off my mind ;)
  7. Luis Keeps coming back

    Member Since:
    Mar 27, 2013
    Message Count:
    10
    Likes Received:
    0
    Trophy Points:
    10
    When I try to add my source file to eclipse it doesn't let me click on the finish button and tells me under the file "Cannot import LiveWallpaperSettings because the project name is in use" but I have no other file open. I don't understand what I did wrong.
  8. aleksej015 Keeps coming back

    Member Since:
    Mar 17, 2013
    Message Count:
    19
    Likes Received:
    2
    Trophy Points:
    10
    You can import only one by one wallpaper, not 5 at once first time. :)
  9. Luis Keeps coming back

    Member Since:
    Mar 27, 2013
    Message Count:
    10
    Likes Received:
    0
    Trophy Points:
    10
    im only doing it one at a time
  10. Vas Origin

    Member Since:
    Jan 4, 2012
    Message Count:
    770
    Likes Received:
    175
    Trophy Points:
    500
    Did you already import a project before? Make sure you rename the project name, otherwise it will clash when you import another one.
  11. Luis Keeps coming back

    Member Since:
    Mar 27, 2013
    Message Count:
    10
    Likes Received:
    0
    Trophy Points:
    10
    no this is my first project
  12. Vas Origin

    Member Since:
    Jan 4, 2012
    Message Count:
    770
    Likes Received:
    175
    Trophy Points:
    500
    Check your projects in Eclipse to see if there is already one that's named LiveWallpaperSettings. If there is, you should rename it to something else.

Share This Page