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 8628223
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T08:28:58+00:00 2026-06-12T08:28:58+00:00

I am trying to follow the tutorial at This Link and I get the

  • 0

I am trying to follow the tutorial at This Link and I get the following errors

[2012-10-03 22:02:16 - MyFirstApp] res\layout\activity_main.xml:0: error: Resource entry activity_main is already defined.
[2012-10-03 22:02:16 - MyFirstApp] res\layout\activity_main.out.xml:0: Originally defined here.
[2012-10-03 22:02:16 - MyFirstApp] D:\Users\Adam\workspace\MyFirstApp\res\layout\activity_main.out.xml:1: error: Error parsing XML: no element found
[2012-10-03 22:03:23 - MyFirstApp] Error in an XML file: aborting build.
[2012-10-03 22:04:47 - MyFirstApp] res\layout\activity_main.xml:0: error: Resource entry activity_main is already defined.
[2012-10-03 22:04:47 - MyFirstApp] res\layout\activity_main.out.xml:0: Originally defined here.
[2012-10-03 22:04:47 - MyFirstApp] D:\Users\Adam\workspace\MyFirstApp\res\layout\activity_main.out.xml:1: error: Error parsing XML: no element found
[2012-10-03 22:04:53 - SDK Manager] Warning: Ignoring library 'com.motorola.android.iextdispservice', missing property value
[2012-10-03 22:04:57 - SDK Manager] Warning: Ignoring library 'com.motorola.android.iextdispservice', missing property value
[2012-10-03 22:05:27 - MyFirstApp] Error in an XML file: aborting build.

I have the following code in my activity_main.xml

<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="horizontal" >

    <EditText android:id="@+id/edit_message"
        android:layout_weight="1"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:hint="@string/edit_message" />

      <Button
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/button_send" />         
</LinearLayout>

Could anyone please tell me what is going wrong. I have spend a significant time trying to figure this issue out. Is there something wrong with the configuration ? When I click the run button a file called activity_main.out.xml gets created which is empty.

  • 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-06-12T08:28:59+00:00Added an answer on June 12, 2026 at 8:28 am

    You are trying to run the xml file activity_main. Change the focus to any java file or run it from package explorer by right clicking the project and run it. Before doing all this, delete your activity_main.out file.

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

Sidebar

Related Questions

I am trying to follow this tutorial and I get the following error which
Trying to follow this tutorial. Autotest fails with this error message: sg $autotest loading
I'm trying to follow this tutorial but instead of generating the expected hbm.xml files
I am trying to follow this tutorial (http://railscasts.com/episodes/88-dynamic-select-menus) to get dynamic select boxes working
I have been trying to follow this tutorial: http://www.androidhive.info/2012/01/android-login-and-registration-with-php-mysql-and-sqlite/ . It is to create
I'm trying to follow this tutorial using StructureMap : http://iridescence.no/post/Constructor-Injection-for-ASPNET-MVC-Action-Filters.aspx What I'm trying to
I'm trying to follow this tutorial on Seesaw Window Building . During the step
I am trying to follow this tutorial ( Using-core-plot-in-an-iphone-application ). When I try to
I am trying to follow this tutorial on how to connect to a database
I want to include Core Location and I'm trying to follow this tutorial: http://www.mobileorchard.com/hello-there-a-corelocation-tutorial/

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.