1. Check out our companion app, Forums for Android! Download from Google Play

Program Stops working after I exit eclipse!

Discussion in 'Application Development' started by bscarl88, Jul 6, 2010.

  1. bscarl88

    bscarl88 Member
    Thread Starter
    6

    Jul 2, 2010
    8
    1
    6
    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
    53

    Apr 30, 2010
    375
    35
    53
    Try Project -> Clean
    or Right click on project -> android tools -> fix properties
     
  3. bscarl88

    bscarl88 Member
    Thread Starter
    6

    Jul 2, 2010
    8
    1
    6
    Nope, didn't work :(
     
  4. hian

    hian New Member
    5

    Jul 11, 2010
    1
    0
    5
    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
    53

    Apr 30, 2010
    375
    35
    53
    Seems like a good reason to use subversive :)
     
  6. yktan

    yktan Member
    6

    Jul 12, 2010
    5
    1
    6
    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...