在OSX上使用Android平台4.2.2的IntelliJ 12.1.4编译错误:Android SDK被错误地解析

时间:2013-07-06 20:43:33

标签: android intellij-idea android-4.2-jelly-bean

我花了一些时间做iOS开发,但我是Android开发的新手。我使用IntelliJ作为我的IDE项目的IDE,并且真的想用它来进行Android开发。到目前为止的步骤:

  • 安装了Android SDK并下载了4.2.2平台和工具。
  • 在IntelliJ中创建新项目,选择Android应用程序模块类型。
  • 指出模块设置使用4.2.2 Android SDK和Java 1.6。
  • 尝试运行IntelliJ构建的默认运行配置。

我收到以下编译错误:

Information: Compilation completed with 2 errors and 0 warnings in 1 sec
Information: 2 errors
Information: 0 warnings
Error: Android Source Generator: Android SDK is parsed incorrectly. Parsing log:
Error parsing the sdk.
Error: Android Source Generator: [untitled2] Android SDK is invalid or not specified

1 个答案:

答案 0 :(得分:0)

我还没有碰到这个,但在模块设置对话框中,我会检查以下内容:

  • 项目:Project SDK
  • 模块:适用于所有模块:模块SDK。它通常设置为“Project SDK”。

我还设置了环境变量ANDROID_HOME。

如果仍然失败,我想指出I can't get IntelliJ to recognise my Android SDK