Error:
No connection to gradle server. Try restarting the server.
Solution:
- Go to theĀ WindowsĀ search bar.
- TypeĀ “Edit the System Environment Variables”.
- In theĀ “Adavance”Ā tab clickĀ “Environment Variables”.
- Go toĀ “System Variables”.
- Check if you have made an option forĀ “JAVA_HOME”.
- If there is noĀ “JAVA_HOME”. ClickĀ “New”Ā and provide the nameĀ “JAVA_HOME”Ā then save it.
- ClickĀ “Edit”Ā and enter the path of yourĀ JDK.