0

I was trying to reposition the textfields and button by using this method:

How to change the position of layout when the orientation of screen change in android?

but when i try to run it, it returns the following error:

Error : Execution failed for 'app:mergeDebugResources'
Error:Execution failed for task ':app:mergeDebugResources'. 

C:\Users\My.Name\AndroidStudioProjects\MyApplication2\app\src\main\res\layout\layout-land: Error: The file name must end with .xml

how should i solve this? the file inside the layout-land folder is already an xml file.

Community
  • 1
  • 1
Sydnie S
  • 303
  • 1
  • 5
  • 18

1 Answers1

2

You created res\layout\layout-land

When you should have created res\layout-land.

The landscape XML files should be the same name as their counterpart portrait mode files.

OneCricketeer
  • 179,855
  • 19
  • 132
  • 245