removed intellij .iml file. The gradle build file is sufficient to import the project both in intellij and android studio.