• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps XML Problems

Every time I create a new project it creates some main.xml and another one to hold the variables.

However if I even expand them - the program no longer compiles and says that main.xml is in error or other errors like that.

I have noticed that I keep loosing the reference to where the Andriod SDK is as well and I have to put it in each time.

Please help if you have any information thanks!!
 
Here is some of the example code

[2011-05-01 21:52:20 - ccc] res\layout\main.xml:0: error: Resource entry main is already defined.
[2011-05-01 21:52:20 - ccc] res\layout\main.out.xml:0: Originally defined here.
[2011-05-01 21:52:20 - ccc] C:\Users\c\Desktop\BLACK MARKET3\ccc\res\layout\main.out.xml:1: error: Error parsing XML: no element found
[2011-05-01 21:52:20 - ccc] 'aapt' error. Pre Compiler Build aborted.

I did a project clean and tried again I get

[2011-05-01 21:53:38 - ccc] (new resource id icon from C:\Users\c\Desktop\BLACK MARKET3\ccc\res\drawable-hdpi\icon.png)
[2011-05-01 21:53:38 - ccc] (new resource id icon from C:\Users\c\Desktop\BLACK MARKET3\ccc\res\drawable-ldpi\icon.png)
[2011-05-01 21:53:38 - ccc] (new resource id icon from C:\Users\c\Desktop\BLACK MARKET3\ccc\res\drawable-mdpi\icon.png)
[2011-05-01 21:53:38 - ccc] (new resource id main from C:\Users\c\Desktop\BLACK MARKET3\ccc\res\layout\main.out.xml)
[2011-05-01 21:53:38 - ccc] (new resource id main from C:\Users\c\Desktop\BLACK MARKET3\ccc\res\layout\main.xml)
[2011-05-01 21:53:38 - ccc] res\layout\main.xml:0: error: Resource entry main is already defined.
[2011-05-01 21:53:38 - ccc] res\layout\main.out.xml:0: Originally defined here.
[2011-05-01 21:53:38 - ccc] C:\Users\c\Desktop\BLACK MARKET3\ccc\res\layout\main.out.xml:1: error: Error parsing XML: no element found
[2011-05-01 21:53:38 - ccc] 'aapt' error. Pre Compiler Build aborted.

Help!
 
In someway you tried to build your main.xml generating an main.out.xml. Both XML declares the same, so you should remove the main.out.xml.
 
Back
Top Bottom