Program Stops working after I exit eclipse!


Last Updated:

  1. bscarl88

    bscarl88 Member This Topic's Starter

    Joined:
    Jul 2, 2010
    Messages:
    8
    Likes Received:
    1
    I'm trying to create a tabbed interface using the example here
    Tab Layout | Android Developers

    but I accidentally ran the main.xml and it created a main.out.xml, then the problems came. I deleted the main.out and restarted Eclipse and now it says there is an error with my package, imports, and pretty much everything. I didn't change any code from when it was working, but I cant get it back to working either. did the main.out.xml screw me over?

    I'm new to android dev, so I decided to start with a few test programs, now I moved to testing out a tabbed interface. I kept running into this problem while creating the other examples, but I just had to start a new project and copy and paste the code and it would start working again. Any help is appreciated!
     

    Advertisement
  2. cp1

    cp1 Well-Known Member

    Joined:
    Apr 30, 2010
    Messages:
    375
    Likes Received:
    35
    Try Project -> Clean
    or Right click on project -> android tools -> fix properties
     
  3. bscarl88

    bscarl88 Member This Topic's Starter

    Joined:
    Jul 2, 2010
    Messages:
    8
    Likes Received:
    1
    Nope, didn't work :(
     
  4. hian

    hian New Member

    Joined:
    Jul 11, 2010
    Messages:
    1
    Likes Received:
    0
    Try:

    Deleting the main.out.xml file.

    Do project->clean again

    and then open one of the .java files, any one

    and run the project
     
  5. cp1

    cp1 Well-Known Member

    Joined:
    Apr 30, 2010
    Messages:
    375
    Likes Received:
    35
    Seems like a good reason to use subversive :)
     
  6. yktan

    yktan Member

    Joined:
    Jul 12, 2010
    Messages:
    5
    Likes Received:
    1
    This works for me all the time. Just delete the *.out.xml file that was generated when you accidentally "Run" an XML file and then Project -> Clean.
     

Share This Page

Loading...