IntelliJ IDEA的 - 创建Android应用程序失败 [英] intellij IDEA - create android app failed
问题描述
当我试图创建IntelliJ IDEA的Android应用程序,我得到以下
When I'm trying to create 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
显示窗口:
我试图建立PATH变量定位Android SDK中,但它并不能帮助。 Android SDK中的安装是否正确,我可以创建并在Eclipse运行Android项目。我究竟做错了什么?这似乎是很常见的错误。请帮助!
I tried to set up PATH variables locating android SDK but it doesn't help. Android SDK is installed correctly and I can create and run android projects in Eclipse. What am I doing wrong? It seems like very common error. Please help!
推荐答案
这看起来像一个路径问题。我不知道到底发生了什么事情,但你可能想尝试通过命令行而不是通过搜索打开的应用程序。这样,它会继承您的路径 - 它没有当你从Finder中启动。一般情况下,即使我没有问题,我一定要在命令行中运行的IntelliJ。
This looks like a path problem. I don't know exactly what's going on but you might want to try opening the app from the command line rather than through Finder. This way it will inherit your PATH - it doesn't when you launch from Finder. In general, even when I don't have problems, I make sure to run Intellij from the command line.
这篇关于IntelliJ IDEA的 - 创建Android应用程序失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!