Gradlew build is taking too much time to complete

Ideally, the Gradle build should not take this much time. But if it’s taking time here are the following steps that you can follow.

Step 1 -

Stop the Gradlew process

You can stop the Gradlew process by giving the following command ./gradlew --stop in a new separate terminal.

Step 2 -

Give executable permission to Gradle

You can use following command to give executable permission
chmod +x gradlew in the respective directory.

Step 3 -

You can refresh the page now. It might take a few seconds to load the VS Code, kindly be patient.