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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T00:42:24+00:00 2026-06-17T00:42:24+00:00

R.java generating but layouts and strings in JAVA file still showing following problem console….

  • 0

R.java generating but layouts and strings in JAVA file still showing following problem

console….

button_scan cannot be resolved or is not a field    DeviceListScan.java 

device_list cannot be resolved or is not a field    DeviceListScan.java 
etc....

below is R.java file everything is generated in it but still have problem , that is for all layout and strings im accessing it says cannot be resolved or is not a feild….

r.java file

    package com.android.settings.bluetooth;

public final class R {
   public static final class attr {
}
public static final class drawable {
    public static final int ic_launcher=0x7f020000;
}
public static final class id {
    public static final int button_scan=0x7f060006;
    public static final int new_devices=0x7f060005;
    public static final int paired_devices=0x7f060003;
    public static final int title_left_text=0x7f060000;
    public static final int title_new_devices=0x7f060004;
    public static final int title_paired_devices=0x7f060002;
    public static final int title_right_text=0x7f060001;
}
public static final class layout {
    public static final int custom_title=0x7f030000;
    public static final int device_list=0x7f030001;
    public static final int device_name=0x7f030002;
}
public static final class string {
    public static final int app_name=0x7f040000;
    public static final int bt_not_enabled_leaving=0x7f040003;
    public static final int button_scan=0x7f04000d;
    public static final int discoverable=0x7f040010;
    public static final int insecure_connect=0x7f04000f;
    public static final int none_found=0x7f04000a;
    public static final int none_paired=0x7f040009;
    public static final int not_connected=0x7f040002;
    /**   DeviceListActivity 
     */
    public static final int scanning=0x7f040007;
    /**  Options Menu 
     */
    public static final int secure_connect=0x7f04000e;
    public static final int select_device=0x7f040008;
    /**   BluetoothChat 
     */
    public static final int send=0x7f040001;
    public static final int title_connected_to=0x7f040005;
    public static final int title_connecting=0x7f040004;
    public static final int title_not_connected=0x7f040006;
    public static final int title_other_devices=0x7f04000c;
    public static final int title_paired_devices=0x7f04000b;
}
public static final class style {
    /** 
    Base application theme, dependent on API level. This theme is replaced
    by AppBaseTheme from res/values-vXX/styles.xml on newer devices.


        Theme customizations available in newer API levels can go in
        res/values-vXX/styles.xml, while customizations related to
        backward-compatibility can go here.

     */
    public static final int AppBaseTheme=0x7f050000;
    /**  Application theme. 
  All customizations that are NOT specific to a particular API-level can go here. 
         */
        public static final int AppTheme=0x7f050001;
    }
}
  • 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-17T00:42:25+00:00Added an answer on June 17, 2026 at 12:42 am

    Just try to Project>Clean your project & Project>Build again.

    And also make sure that you have not imported import android.R; in your activity.

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

Sidebar

Related Questions

I have written java code for generating json of my searched data from file.But
I am working on generating Java objects from an XSD file using JAXB 2.1.
In java, what is an efficient solution to the following problem: I have multiple
I'm generating a zip file in java containing a mix of text and image
I found some Java code for generating combinations on, but I can't understand what
My generation of R.java is non-existent, but my BuildConfig.java is still generated when projects
I'm generating java sources with JCodeModel and now want to compile at runtime. But
Is there something akin to the .NET xsd.exe for java - generating classes from
I'm generating Java from WSDL using wsimport (JAX-WS 2.1.3) and need to make it
I am generating Java Code from my Domain specific Language (DSL). My Language is

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.