Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to solve the issue of Android Studio 3 (3.1 canary) Preview: Cannot import project

I am working on Android Studio 3 Preview at the moment. However, whenever I tried to open an old project it says:

The project file specified already exists.

I have deleted:

  1. Old code/project from hard disk (completely)
  2. Removed the project from the project list.

Any tips on this?

enter image description here

like image 576
Ben Avatar asked Oct 28 '17 12:10

Ben


2 Answers

This needs two steps:

  1. You must delete the .idea folder under your project. It is a hidden directory. use ls -a to find it out.

  2. Right click build.gradle and choose application. It probably popup a window asking for a program to open it, choose Android Studio.

like image 54
Ben Avatar answered Sep 18 '22 21:09

Ben


I faced the same problem with 3.1 and .idea folder was also not there. Still it was not working. So instead of doing "Import Project" I did "Open an existing Android Studio project" and it worked.

like image 43
user3686442 Avatar answered Sep 17 '22 21:09

user3686442