Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialSteve Dutky
5,290 PointsMoving Project Files to another system
When I copy the Stormy2 project files from one linux system to another, opening the project on the target system caused Android Studio to hang.
When I download the project files from Treehouse to the target system, I can open the project in Android Studio w/o a problem.
So my question is how should I go about bundling up the files for moving them to a new system?
3 Answers
Steve Dutky
5,290 PointsAndroid Studio was apparently choking on .idea/workspace.xml. Apparently it gets auto-generated. I deleted it. Upon opening the project, no tool windows or files were open. I was able to set the default views, save and run the project.
I probably need to add .idea/workspace.xml to gitignore. What if any files under .idea are needed?
Seth Kroger
56,413 PointsHave you tried Import Project instead of Open Project? If all the source files are there, it should be able to reconstruct any settings/configuration files it needs.
The best way bundle a project for transfer is to use a version control system like git and put it on a repository host like GitHub or Bitbucket. That way you can keep the changes to the different copes in sync with each other.
Steve Dutky
5,290 PointsHi, Seth,
I created a gitHub repository (https://github.com/sdutky/Stormy2.git) using Android Studio->VCS->Import into Version Control->Share Project on GitHub from my Ubintu 12.04 system at work where the app runs successfully on Gennymotion emulator.
At home on my Ubuntu 14.04 system, when I import the project from GitHub from the Android Studio Welcome screen, the AS gui disappears but a Gradle Build Successful toast appears.
When I download and unzip the project from Treehouse (http://treehouse-code-samples.s3.amazonaws.com/Android/WeatherApp/Stormy_s6v4.zip), I can open it in AS w/o problem.
Can you give me a clue as to what to try next?
Much appreciated!
Seth Kroger
56,413 PointsI'm not exactly sure what to do at this point. I am able to import your repository into Android Studio on Windows just fine. You could try File -> Invalidate Caches / Restart and try to open the project again. Also check your versions of Java and the Android SDKs you have installed.
Seth Kroger
56,413 PointsSeth Kroger
56,413 PointsGlad you got it working!
Looking at the .gitignore on your project it doesn't look like the one usually generated by Android Studio and mentions Eclipse in the comments, so it was probably created by Eclipse. An IDEA/Android Studio generated .gitignore has these lines that yours don't: