You can take a look at What should be in my .gitignore for an Android Studio project?
If you use the .gitignore file from that questions you shouldn’t have any problems.
I think that if you create a new project inside a git directory Android Studio will automatically create the necessary .gitignore files for your project.
EDIT:
Actually it seems that my Android Studio always generates .gitignore files when I create a project.