Issue
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.
Solution
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.
Answered By - OneCricketeer
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.