Android Studio does not check Java files on GitHub

I am using Android Studio and checking my files. Everything works fine, except that the main.java files do not commit at all. I tried to go through each file and click the commit and add button. Android Studio says that β€œall files are updated,” but when I look in GitHub, nothing happens except the folder.

I looked at the ignore file and the files are not inside this.

+6
source share
2 answers

I had this problem, I could not fix it, but I was able to transfer my project to a new repository. Start by deleting the .git folder inside the project folder. Also be sure to check any .git folders in your Java folders. In my opinion, they are hidden by default, so you can enable the display of hidden files. After that, return to Android Studio, and it will tell you that some changes have occurred, and click "Configure." It will open the settings window, delete these elements in red text. Now it should be ready so that you can import into version control from the very beginning. I personally used these steps https://www.londonappdeveloper.com/how-to-use-git-hub-with-android-studio/

+3
source

I would suggest looking at the change window. Make changes to any of the .java files and look at the change viewer. Check if there is a modified file there. If it is not specified

  • I believe that you have not added the folder where java files go to your repo

Another option is to manually add files from the command line once and repeat the above steps and check.

0
source

Source: https://habr.com/ru/post/989899/


All Articles