Sometimes, terminal processes may take time due to low CPU configuration or too many environment path configurations. Perform all these operations from your IDE (Android Studio) instead.