Cannot worked in Gradle 2.2.1
johnwatsondev opened this issue · comments
JohnWatsonDev commented
David Breneisen commented
The layout file still needs its direct parent to be a layout folder. Here, the 'activity' folder is being treated as a resource folder (see how the folder icon changed). Try declaring a res folder 'src/main/res/activity' and then add a layout folder, and then add the layout file to that.
JohnWatsonDev commented
Tomblarom commented
Tomblarom commented
"Try declaring a res folder 'src/main/res/activity' and then add a layout folder, and then add the layout file to that." - Sorry ;)