Migrate project to gradle error

If you haven't started coding in your new machine, the simplest way would be to just delete your project directory, and use "import from VCS".

Not worth the time to find the "solution", trust me. I tried. Almost 2 years since you asked the question, and people are still getting the issue, then this problem is obviously not worth solving.


First of all I would remove following files/directories from your project-folder:

  • bin/
  • build/
  • .idea/
  • .gradle/
  • projectname.iml

Then try to import the project again in AndroidStudio. This usually works for me, and to avoid that in the future, adjust the .gitignore file properly.


If the first tip does not help: have you tried downloading a more recent gradle (1.12) locally and point to that directory? (Don't point AndroidStudio to download, but do it yourself first). You are not using a gradle-wrapper are you?