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 project 'xxxxxxx-xx' is not a Gradle-based project