Search code examples
androidintellij-ideaaapt

Template app doesn't compile in Intellij Idea


I want to use Intellij Idea instead of Eclipse, but I can't even build a Hello World app.

When I try to build the project errors like this:

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

I googled the error message and I've found this, but I'm still clueless. I guess I just have to edit a command in the IDE, but I have no idea how could I do it.


Solution

  • You need to add the android dependencies to your module. It should look something like this.

    enter image description here

    enter image description here