Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6724545
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:42:09+00:00 2026-05-26T09:42:09+00:00

I am new to XML, and Android programming.I was following a tutorial, which asked

  • 0

I am new to XML, and Android programming.I was following a tutorial, which asked me add new line in the display. Something like hello world. I did as it was instructed, changed main. xml, and put what i wanted to display in string.xml

It compiled fine, and It got displayed. but I go into string.xml/main.xml, try and compile, i get the error that is shown at the bottom. I couldn’t work this out, so i started all over again. And same cycle happens. If I just open either main.xml/string.xml, a second ot third time, it throws me all these error.
main.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >
<TextView 
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:text="@string/some_name"
    />
<TextView  
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:text="@string/hello"
    />


</LinearLayout>

strings.xml;

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="hello">Hello World, ThisisannoyingActivity!</string>
    <string name="app_name"> This is  annoying</string>
    <string name="some_name">w ha t ever</string>
</resources>

I have getting the following error;

res\layout\main.xml:0: error: Resource entry main is already defined.
res\layout\main.out.xml:0: Originally defined here.
thisisannoying\res\values\strings.out.xml:1: error: Error parsing XML: no element found

Could you please tell me what is going on here

Regards,
mike

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T09:42:10+00:00Added an answer on May 26, 2026 at 9:42 am

    Check inside of your res/layout folder in your project. There is a xml file there called.

    main.out.xml

    . And in your res/values folder there is a file

    strings.out.xml

    delete both of these. If you are using MOTO DEV this is something that happens when you select a xml file and click build. Its weird.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm very new to Android programming, so this is probably something pretty basic. I
I'm new to android programming and I'm having a little trouble with the following.
I'm trying to make an android app (I'm new in the Android programming world),
I'm using Expression Blend 3 I click on add live datasource, add new xml
I'm new to Eclipse/Android development so I'm hoping this is something basic that I'm
I am very new to Android programming, and I have read everywhere and I
I am new to Android programming. I have installed the Eclipse and Android SDK.
I've migrated to new build.xml using android update to my existing project, it builds
Hi I'm new to Android Programming and I'm trying to make a simple program
I guess something should be done with the Android-Manifest.xml file or something in the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.