Tuesday, 15 September 2015

java - Cannot refactor Android Studio Project -


I copied the current project of Android studio into a new directory. I am using the same coding for another app.

I open the project in Android Studio, and I click on the "Java" folder, but it does not show any file inside (they appear in the hard drive).

When I click on "Refactor" on the "Java" folder, the following message appears: "Can not refactoring. The selected directory is not inside the project".

Does anyone help me in solving this, thank you

This project was imported into a non-empty directory.

The following steps:

Assume that you want to copy the project: MyProject1

  1. Paste from your directory and into the empty folder.

  2. Make sure that you close myProject1 from Android Studio files> Close Project

  3. Open an existing Android Studio project

  4. Locate the new directory, where you have pasted the MyProject1 folder, then ask " MyProject1 "folder, if there is a" MyProject1 "folder, it will not work.

  5. Now select MyProject1 folder and proceed.

  6. This graduate will start building build.

  7. After making a successful you can start refactoring.


No comments:

Post a Comment