模板应用程序无法在Intellij Idea中编译

时间:2012-09-06 17:41:29

标签: android intellij-idea aapt

我想使用Intellij Idea而不是Eclipse,但我甚至无法构建Hello World应用程序。

当我尝试像这样构建项目错误时:

  

[Hello World] / home / martin / workspace / Hello World / res / layout / main.xml:2:错误:在'android'包中找不到属性'orientation'的资源标识符

我用Google搜索了错误消息,我发现this,但我仍然无能为力。我想我只需要在IDE中编辑命令,但我不知道我该怎么做。

1 个答案:

答案 0 :(得分:0)

您需要将android依赖项添加到您的模块中。看起来应该是这样的。

enter image description here

enter image description here