Drawables will not click on github Android Studio

Hello, I don’t know why this is so, but when I commit and click on GitHub no matter how many png files or images I add to my available folders, the drawables folder never changes in the repository when I access it through my profile on github.

Image example:

enter image description here

I did research, but did not find much substance

Why can't the assembly and the libs folders in the Android project be completed or clicked?

I was surprised that not much was written on this. This can be fatal if the user makes a project termination error and needs to restore everything on Github only to find that every file with the ability to draw or png will be lost.

+7
git android github android-studio github-for-mac
source share
1 answer

It depends on how you add images in Android Studio. If you put the images in the appropriate folders without telling AS via the file explorer, the images will not be added to git and they will be displayed in red in the project explorer. If you copy the images and paste them into the appropriate folders in the AS project explorer, they should be added to git and displayed in green, as shown below.

Android studio file color example

If there are files that you want to add to git that have not yet been added, simply right-click on the file in the project explorer and select git → Add or use Ctrl + Alt + A.

+18
source share

All Articles