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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T02:03:07+00:00 2026-05-19T02:03:07+00:00

I followed the Hello, Testing tutorial to the letter. Yet, the following line produces

  • 0

I followed the Hello, Testing tutorial to the letter.

Yet, the following line produces a “com.example.helloandroid.R.id cannot be resolved” error:

  mView = (TextView) mActivity.findViewById(com.example.helloandroid.R.id.textview);

Eclipse amazingly suggests 2 quick fixes:

  1. Create field ‘id’ in type ‘R’
  2. Create constant ‘id’ in type ‘R’

Can you help me understand what these fixes mean? Are these really the correct fixes? (why didn’t the tutorial provide them, too?)

  • 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-19T02:03:08+00:00Added an answer on May 19, 2026 at 2:03 am

    In HelloAndroid project, HelloAndroid.java

     setContentView(R.layout.main);
    

    Check your HelloAndroid project, in “gen->com.example.helloandroid->R.java” have the following code like:

    public static final class id {
     public static final int textview=0x7f050000;
    }
    

    if no, check “res->layout->main.xml”. there is “android:id=”@+id/textview” as follows?

    <TextView xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/textview"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:text="@string/hello"/>
    

    check these items, fix your HelloAndroid.java and/or main.xml if needed.
    rebuild HelloAndroid project, and rebuild HelloAndroidTest project.

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

Sidebar

Related Questions

I followed Android's Hello, Testing tutorial verbatim, yet when I run it I receive
I've followed the tutorial here: http://developer.android.com/resources/tutorials/views/hello-gridview.html I'm wondering how I get place text over
hello fellow programmers, I followed a tutorial at http://www.androidsnippets.com/encrypt-decrypt-between-android-and-php to send a String encrypted
I am using iOS SDK 4.2 and followed this tutorial: http://mobileorchard.com/hello-there-a-corelocation-tutorial/ , and got
I've followed the tutorial at http://developer.android.com/guide/tutorials/views/hello-gallery.html to create a basic gallery. My ultimate goal
I followed the instructions in the Android WebView tutorial (at http://developer.android.com/resources/tutorials/views/hello-webview.html ). When I
I have followed this tutorial ( http://developer.android.com/resources/tutorials/views/hello-tabwidget.html ) and completed the task and it
i had followed exactly same procedure on google's tutorial: http://developer.android.com/guide/tutorials/views/hello-mapview.html ...while i got force
I'm new to Android, I've followed the hello world tutorial through and have a
I followed this tutorial with only one difference. Instead of naming it hello.php, I

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.