2012-09-06 39 views
1

我想使用Intellij Idea而不是Eclipse,但我甚至無法構建Hello World應用程序。模板應用程序不能編譯在Intellij Idea

當我嘗試建立這樣的項目錯誤:

[Hello World] /home/martin/workspace/Hello World/res/layout/main.xml:2: error: No resource identifier found for attribute 'orientation' in package 'android'

我GOOGLE了錯誤信息,我發現this,但我仍然一無所知。我想我只需要在IDE中編輯一個命令,但我不知道該怎麼做。

回答

0

你需要添加android依賴到你的模塊。它應該看起來像這樣。

enter image description here

enter image description here

+0

謝謝,現在的基礎之上。我也必須刪除annotations.jar。 –

相關問題