John
John

Reputation: 336

Android Studio doesn't build the project after removing git

I have an android project and it had some git issues so I removed git from it using:

rm -rf .git 

By going into the project directory.

And then reinstalled git using:

git init

but now on android studio the option to build the project does not work, I tried hammer icon, make project button but nothing happens by clicking on it. I have android studio version 3.5.1.

Then I tried creating a new project, it works fine and builds.

Here is the screenshot of my screen, with project that doesn't build. enter image description here

Upvotes: 1

Views: 112

Answers (1)

John
John

Reputation: 336

Fixed it with

File->Sync Project With Gradle Files, option.

It worked, but don't know why.

Upvotes: 1

Related Questions