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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T13:48:44+00:00 2026-06-04T13:48:44+00:00

I am creating an android application and when changing some of the code and

  • 0

I am creating an android application and when changing some of the code and going to run it i got told that there was an error in the application’s R.Java file. i do no know where this error came from and i do not seem to be able to modify it.

the code inside the R.Java is

public final class R {
    public static final class array {
    public static final int races_array=0x7f040000;
}
public static final class attr {
}
public static final class drawable {
    public static final int icon=0x7f020000;
    public static final int logo=0x7f020001;
}
public static final class id {
    public static final int 1=0x7f060007;//this line has the error 
    public static final int BMI=0x7f06001f;
    public static final int Cdate=0x7f060005;
    public static final int Current=0x7f060006;
    public static final int Days=0x7f06001e;
    public static final int activity=0x7f06001b;
    public static final int advice=0x7f060004;
    public static final int cals=0x7f060022;
    public static final int cheight=0x7f060013;
    public static final int choice=0x7f060019;
    public static final int code=0x7f06001d;
    public static final int cweight=0x7f06000a;
    public static final int date=0x7f060020;
    public static final int dateDisplay=0x7f060008;
    public static final int details=0x7f06001c;
    public static final int eheight=0x7f060011;
    public static final int eweight=0x7f060012;
    public static final int get=0x7f06000d;
    public static final int goal=0x7f060025;
    public static final int group=0x7f060023;
    public static final int newheight=0x7f060017;
    public static final int newweight=0x7f060016;
    public static final int nweight=0x7f06000c;
    public static final int out=0x7f06000e;
    public static final int out_text=0x7f060002;
    public static final int pass=0x7f060018;
    public static final int pickDate=0x7f060009;
    public static final int progress=0x7f06001a;
    public static final int start=0x7f060003;
    public static final int step=0x7f060001;
    public static final int steps=0x7f060021;
    public static final int t1=0x7f06000f;
    public static final int t2=0x7f060010;
    public static final int textView1=0x7f06000b;
    public static final int textView2=0x7f060024;
    public static final int textView3=0x7f060014;
    public static final int textView4=0x7f060015;
    public static final int tv=0x7f060000;
}
public static final class layout {
    public static final int activity=0x7f030000;
    public static final int advice=0x7f030001;
    public static final int choice=0x7f030002;
    public static final int convert=0x7f030003;
    public static final int main=0x7f030004;
    public static final int notes_row=0x7f030005;
    public static final int progress=0x7f030006;
    public static final int splash=0x7f030007;
}
    public static final class string {
        public static final int app_name=0x7f050001;
        public static final int hello=0x7f050000;
        public static final int race_elf=0x7f050003;
        public static final int race_goblin=0x7f050007;
        public static final int race_halfling=0x7f050006;
        public static final int race_human=0x7f050005;
        public static final int race_orc=0x7f050002;
        public static final int race_troll=0x7f050004;
    }
}

i do not know if this helps anyone but i just want to know what created this error and how can I fix it.

  • 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-04T13:48:46+00:00Added an answer on June 4, 2026 at 1:48 pm

    You have an id somewhere defined as @+id/1. 1 does not make for a valid Java identifier, hence the error. For that same reason, one cannot create ids or resources which name starts with a number, or contains spaces, or matches a reserved keyword.

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

Sidebar

Related Questions

Is there a good sample application or tutorial for creating android Service that run
I'm creating an android application and within it there is a button that will
Is there possibility of creating android application that sends a mail to gmail account
I am creating an android Application that will add effect on Bitmap. Is there
I started doing some thinking about creating an Android application that can be used
I'm creating an Android application that requires the following: Data from RSS feed gets
I'm creating an Android application that requires me to create a bitmap of the
I am creating an android application that requires me to call is in different
I am creating an android application using Java. I have a boolean variable called
I'm trying to record sound by creating an android application. here is the code:

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.