简体   繁体   中英

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.

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

在此处输入图片说明

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM