I used to work with Android studio normally. yesterday I downloaded the newest version of android Studio 2.12. But now, when i open any project i receive the following message
Gradle 'EcoAssistant_03' project refresh failed
Error:Connection refused: connect
and I found that all my classes marked with red and as if the Android API's are not recognized at all.
To solve this issue, I disabled the online mode by doing the following:
1- File -> setting -> compiler -> command line option -> --offline
2- File -> setting -> tick offline mode
But that did not solve the problem.