How to import a project in Android Studio?
Published November 18,2019 by Abhilash

How to import a project in Android Studio?

Open your Android Studio and if any project is opened just close it (Go to File->Close Project) then you'll see a small window like this:

Step: 1

Open Android Studio project: Click on "Open an existing Android Studio project" to open Android Studio project

  1. Select your project directory from the 'Open file to Project' dialogue and click on the OK button.
  2. Wait until project sync and build


Open Gradle or Eclipse ADT project: Click on “Import Project(Gradle, Eclipse ADT etc)” to open Eclipse build project

  1. Here, browse your project by navigating the location where you kept your project, your project’s folder will appear with an Android logo on it like this:
  2. Select the app and click OK, this will take some time for the Gradle to build, wait for the loading time. (You might get an error here stating the different SDK location, the error looks like this ):
  3. In case of the above error just go to Project Directory and you’ll then find the file named “” in the root folder of your project. Open this file and scroll to the last 2 lines “ndk” and “SDK” and change the location with the one of your SDK and save the file.
  4. Again open the project or else if already opened in Android studio go to Gradle->Rebuild.

Step: 3

To build and run your app: In the toolbar, select your app from the run configurations drop-down menu.

  1. From the target device drop-down menu, select the device that you want to run your app on.

Note: If you don't have any devices configured, then you need to either connect a device via USB or create an AVD to use the Android Emulator

  • Click on Run button in Toolbar or Select the Run menu in the menubar


Edit project :

By default, Android Studio displays your project files in the Android view. This view does not reflect the actual file hierarchy on disk, but is organized by modules and file types to simplify navigation between key source files of your project, hiding certain files or directories that are not commonly used. Some of the structural changes compared to the structure on disk include the following:

  1. Shows all the project's build-related configuration files in a top-level Gradle Script group.
  2. Shows all manifest files for each module in a module-level group (when you have different manifest files for different product flavors and build types).
  3. Shows all alternative resource files in a single group, instead of in separate folders per resource qualifier. For example, all density versions of your launcher icon are visible side-by-side.

Within each Android app module, files are shown in the following groups:

  1. manifests: Contains the AndroidManifest.xml file.
  2. java: Contains the Java source code files, separated by package names, including JUnit test code.
  3. res: Contains all non-code resources, such as XML layouts, UI strings, and bitmap images, divided into corresponding sub-directories. For more information about all possible resource types, see Providing Resources.
  4. Gradle Scripts: Two types of Gradle file are used in android projects One type is Project level Gradle which contains application repositories, dependencies, and project-level variables, Second type are modules level Gradle which contain app version name, version code, min version, application ID, dependencies for this module, debug and release build types, build flavors, etc
Technology Blogs
Have an Innovative app Idea
Get a Free Quote to Build & Manage your App..!
Popular Posts
Related Blogs
tvisha technologies click to call
Request A Call Back