I am using Android Studio and checking in my files. Everything works fine, except the main.java files are not committing at all. I have tried to go through each file and push the commit and add button. Android Studio says "all files are up to date," but when I look inside GitHub, nothing is there except the folder.
I have looked at the ignore file and the files are not located inside of this.
I had this issue, I was not able to fix it elegantly but I was able to commit my project to a new repository. First start by deleting the .git folder inside the project folder. Also make sure to check under your Java folders for any .git folders. These, I believe, are hidden by default so you'll have enable show hidden files. After this, go back to Android Studio and it will tell you some changes have occurred, go ahead and click 'Configure'. It will open up the settings window, delete those items in red text. It should now be ready so that you can import into version control from the beginning. I personally, used these steps https://www.londonappdeveloper.com/how-to-use-git-hub-with-android-studio/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With