After changing the gradle build file to use gradle build tool 0.8.+,
classpath \'com.android.tools.build:gradle:0.8.+\'
my Android studio
What worked for me in this regard was , replacing the GRDADLE jar and properties file from the respective project that you may be trying to import .
Bit late , but can be of some help to the future queries .
right click your
android studio.app -> show package -> content -> gradle
and see the gradle
version. In that folder, now got to your android studio IDE and open your preference and go to
Build, execution -> build tool - > gradle
check the preference there. verify the path of gradle is as content - > .... and last there will be gradle version, see if that matched the gradle version in the content of androidStudio.app
guess this helps someone.
This could be anything, but in my case, it is due to an invalid HTTP proxy and some libraries can't be downloaded. In Settings-> HTTP Proxy, set to "None".
delete gradle folder in your project folder then reopen it using studio, in choose dialog choose cancel, don't use grade wrapper to download latest version of gradle
I solved it
deleting gradle and intellij files
rm -rf .idea/ *.iml .gradle/
reimporting the project on intellij
In my case the problem was Genymotion plugin.
Once i removed it from studio and restarted. It worked fine.
I still don't know how that could happen as i regularly use genymotion with studio in my other machines.
You can still run genymotion even if you remove studio plugin by starting emulator from genymotion itself.