How to import an Intellij project in android after you reinstalled your Intellij
If it happened to reinstall your Intelij and you don’t remember how to import your android projects maybe this post will help you, even a little at least. So, lets begin.
Step 1: Press CTRL+SHIFT+ALT+S and the Project Structure window will open. On the left click on the project and then press the new button like in the picture.
Step 2: After you pressed the “new” button you will see a list. Select the JSDK option and find your JDK1.5 or 1.6 (JDK is where you installed your Java). Then press the “new” button again and choose Android SDK this time, like in the pictures below and search for the path where your android folder is on your computer. After this you will have to select the version of jdk 1.5 or 1.6 and then the android plarform (I selected android 2.1)
Step 3: At this step you must have your settings like this:
Step 4: That’s all with the project settings. Let’s move on the next part. On the left of the window just below the Project, click on Modules. Here there’s nothing for the moment but it will be. Now you have to click on the “+” button just like in the picture below:
Step 5: After you clicked the button this window will open and you will have to do what the picture says:
Step 6: After you pressed the “…” button a windows explorer will be opened and you will have to search for your project and select the “.iml” file like in the picture:
Step 7: Now your project is imported. If you click on the name of your project you will see on the right some options. Click on the “Paths” and be sure to check the first option like in the picture.
Step 8: Now click to “Dependencies” and press the “new” button like in the picture and select the Android SDK and then the platform for Android (2.1 in our case).
Step 9: Now your settings must be like in the picture (of course, if you made the project on another platform you will must have your platform on the Module SDK. After this press ok and that’s it. Your project is ready.
Search In Blog
Want to donate?
Recent Posts: My Android Solutions
If you ever wondered how to read and parse a simple JSON file stored in the assets directory of your Android project, here is a way to do it.
In this tutorial I will create a simple Sectioned RecyclerView that will show 2 sections and a few items in each section and how to move an item from one section to another. Note: For RecyclerView I used AndroidX imports and not android.support.v7.widget.RecyclerView! Setup We need to import the recycler view from AndroidX. The build.gradle…
Recently, I had to add a perfect square CardView and I wanted to achieve this without hardcoding its width and height. I happily discovered the power of ConstraintLayout and this is how I managed to create a perfect square which should work on every dimension. In my project I created a RecyclerView with 2 columns,…