I\'ve been reading this for hours now and everyone seems to have a different approach or that the tutorials are out of date.
Android Studio .gitignore only includes
IF your project is showing error like The project 'xxxxxxx-xx' is not a Gradle-based project
then check this link. I hope it helps. This link might cover your possible problem. Let me know the progress.
The answer is obvious when looking at the .gitignore
file of a newly created project. The build.gradle
file is and should be included in the push to the remote repo.
So the person who made the repo in my question is doing it wrong. The .gitignore
file includes:
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
/captures
As seen, more files should of been uploaded to the remote repo.
Choose Existing Sources instead of Import