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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:33:41+00:00 2026-06-13T16:33:41+00:00

I tried creating my first app in android, wherein i tried putting a simple

  • 0

I tried creating my first app in android, wherein i tried putting a simple button. After following a step by step procedure of ‘how to do it’ from http://developer.android.com/training/basics/firstapp/building-ui.html i found that there are unresolved errors in the activity_main.xml file in the following line:
android:text=”@string/scan” />

The error says error: Error: No resource found that matches the given name (at ‘text’ with value ‘@string/scan’).
Can anyone tell me why and also explain how i can solve this?

I am pasting the whole xml file contents here:

<?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">
    <Button
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/scan" />
</LinearLayout>

Here are the contents of sting.xml

<resources>

    <string name="app_name">Myaxx</string>
    <string name="menu_settings">Settings</string>
    <string name="title_activity_main">MainActivity</string>

</resources>

Here are the contents of the activity_main file.

<?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">

    <Button
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/button_scan" />
</LinearLayout>
  • 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-13T16:33:42+00:00Added an answer on June 13, 2026 at 4:33 pm

    The error says that you do not have a string with name scan in your strings.xml file.
    do you have a string with name scan in your strings.xml?
    If not try adding a string in strings.xml

    simply do this

    <resources>
    
        <string name="app_name">Myaxx</string>
        <string name="menu_settings">Settings</string>
        <string name="title_activity_main">MainActivity</string>
        <string name="scan">scan</string>
    </resources>
    

    This means that you are having a string with name scan and value scan (In the last scenario) and you are referring it using @string/scan which returns the value of the string with name scan (@string/nameOfTheString)

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

Sidebar

Related Questions

New Android developer here. I'm following a tutorial at http://www.vogella.de/ . The first applications
I'm creating my first app for Android device and I was faced with a
I have small library i want to use for creating games. First, i tried
Tried following the instructions here: How to use Google app engine with my own
I'm creating an Android app and trying to use Google Places API through Google
I'm attempting to write my first android app, HelloAndroid. The error in the title
I'm creating Android application contains 2 buttons, on click on each button play a
I am creating a calculator app and this is my first ios app, so
I was tasked with creating a simple app to maintain a user's collectibles collection
am having the following problem: In my app I am creating a temporary object,

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.