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

  • Home
  • SEARCH
  • 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 9166033
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:03:54+00:00 2026-06-17T15:03:54+00:00

I am learning Android, and I have what I think is a weird problem.

  • 0

I am learning Android, and I have what I think is a weird problem.

in /res/values/strings.xml I have:

<string name="titleStatus">Status Update</string>

in /res/layout/activity_status.xml I have:

<!-- Title TextView-->
<TextView android:layout_width="match_parent"
  android:layout_height="wrap_content" android:gravity="center"
  android:textSize="30sp"
  android:layout_margin="10dp" android:text="@string/titleStatus"/>

However, when viewing activity_status.xml I am getting error:

Error: No resource found that matches the given name (at ‘text’ with
value ‘@string/titleStatus’). activity_status.xml

I then figured it could possibly help use “Project | Clean”, but I get the same problem (and now without the auto-generated R.java class)

I am following this tutorial/book:
http://ofps.oreilly.com/titles/9781449390501/Android_User_Interface.html

  • 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-17T15:03:57+00:00Added an answer on June 17, 2026 at 3:03 pm

    Whenever you add something to a resource file and try to use it in another without saving it first, you will get an error.

    The normal ctrl+s just saves the file you’re in, so compilation will occur without the changes in the other file.

    Pressing ctrl-shift-s saves changes in all open files (same as going to File -> Save All).

    Personally, I hit ctrl-shift-o, ctrl-shift-f and ctrl-shift-s everytime I need to save some changes to organize the imports, format the code to fix indenting etc. and to save all changes.

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

Sidebar

Related Questions

I'm learning Android development. I have a basic app running on the Gingerbread emulator,
I have been working on learning the Android NDK the past few days, but
I'm learning android, and I got into a little problem. I've got a button
I have recently started learning java for creating android apps. I have spent hours
I've been learning Android for a while now and have decided on making an
I Have just started learning Android, this is the code of my java file.
Update: This post was from when I was learning android with android 2.2, be
I have recently just started learning how to develop android applications. I am am
I am learning Android and have been working on an application that will need
Ok I am learning to use databases in android and have follow several tutorials

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.