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 trial

Android

justin z
justin z
11,042 Points

Trouble importing project from GitHub, didn't include right files in version control?

Hello, I've been working on a project at https://github.com/zwickers/ChuckNorrisFacts , but when I open the project on my other computer using "Checkout from Version Control" and getting it from GitHub, the project becomes a total mess and doesn't work at all. I think I'm including the incorrect files in version control. In fact, there doesn't seem to be any gradle files at all when I open it up on my other computer. Please tell me what other files i need to add to my version control!

1 Answer

Seth Kroger
Seth Kroger
56,413 Points

There should be a build.gradle file as well as gradle.properties, settings.gradle, the gradlew files and the gradle/ directory (but not the .gradle/ directory which is already ignored.) Basically almost anything in the top level directory (Switch the tab at the top of the Project pane from Android to Project view) with gradle in the name. You can also see the files as "untracked" by clicking "Version Control" at the bottom and can move them into the default changelist to stage them.

justin z
justin z
11,042 Points

I have a completely bizarre problem where my gradlew files disappeared from my original android studio project, and they don't reappear even if I try to reset my project to a previous commit. In fact, I can only do Project view, when I do Android view it is completely blank. Also my gradlew files don't show up in my unversioned files even though they aren't on my Git. Do you have any idea what could have caused this and how I can fix it? I can't begin to solve my first problem since now my gradlew files don't appear to exist.

Edit: Some more info...when I try to run my project (which previously ran just fine before some of the gradle files disappeared) now says "Error: Module not specified" in a pop-up window when I try to run it.