After changing the gradle build file to use gradle build tool 0.8.+,
classpath \'com.android.tools.build:gradle:0.8.+\'
my Android studio
I solved it
deleting gradle and intellij files
rm -rf .idea/ *.iml .gradle/
reimporting the project on intellij