-
Notifications
You must be signed in to change notification settings - Fork 2
Cloning project for eclipse
Cory Groom edited this page Mar 14, 2014
·
4 revisions
All right. I had a huge headache trying to get this thing working in Eclipse. Even worse, after I figured it out my git repo corrupted itself... Now that it works, hopefully I can make it easier on other people.
Steps:
- (obvious step) Clone the git repo into some folder.
- Copy the .git folder from your repo to somewhere else. You may need that thing again.
- Inside Eclipse, go to "File -> Import.." and under "Android" choose "Existing Android Code Into Workspace". Then click Next.
- Find and select your project directory for "Root Directory". It will automatically fill in the "Projects" section with the SmartFridgeAndroid and Tests projects. Make sure the checkboxes are checked for both.
- Change the "New Project Name" for both of the "Projects to Import", probably to the same name. I changed both names to SmartFridgeAndroid.
- Check the "Copy projects into workspace" checkbox and click Finish. It will give some error about the folder already existing, which you'll ignore.
- Right click the project and click "Build Project".
Now you should be able to run the app, though right now it just shows the Hello World text.
For whatever reason, the above kept breaking my git repo. I fixed this by replacing the .git folder in my project with the one I copied out in step 2.
Hopefully this helps!