1Open IntelliJ IDEA
2Close all open project windows
3The IntelliJ Welcome screen will be displayed
4Add required SDKs
5Click on Configure > Project Defaults > Project Structure
6Select SDKs
7Add Java Development Kit
8Click + > JDK
9Note: Press Cmd+Shift+. to show hidden files in the file chooser dialog.
10Navigate to the JDK location. E.g., /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk on OSX.
11Select the JDK folder
12Add Android SDK
13Click + > Android SDK
14Note: Press Cmd+Shift+. to show hidden files in the file chooser dialog.
15Navigate to the Android SDK location. E.g., for Homebrew installations, use /usr/local/Cellar/android-sdk/<sdk-tools-version>
16Select the Android SDK version folder and accept the defaults presented
17Click OK