Intellij IDEA - create an Android application

When I try to create an Android application in intellij idea, I get the following

The project wasn't generated by 'android' tool : can't find sdkmanager.jar /Users/timon/development/android-sdk-mac_x86/tools/android: line 30: dirname: command not found /Users/timon/development/android-sdk-mac_x86/tools/android: line 33: basename: command not found /Users/timon/development/android-sdk-mac_x86/tools/android: line 40: dirname: command not found /Users/timon/development/android-sdk-mac_x86/tools/android: line 44: dirname: command not found /Users/timon/development/android-sdk-mac_x86/tools/android: line 48: basename: command not found 

shows the window:

error

I tried to set up the PATH variables defining the Android SDK, but this does not help. The Android SDK is installed correctly, and I can create and run Android projects in Eclipse. What am I doing wrong? This seems like a very common mistake. Please, help!

+1
android intellij-idea
source share
2 answers

It looks like a path problem. I don’t know exactly what is happening, but you can try to open the application from the command line, and not through Finder. Thus, it inherits your PATH - it does not start with Finder. In general, even when I have no problems, I definitely started Intellij from the command line.

+3
source share

I had the same problem with IntelliJ Idea 11 on mac.
Added export PATH=/Users/myhomedir/Downloads/android-sdk-macosx:$PATH and the initial idea from the command line terminal.

0
source share

All Articles