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

The Archive Base Latest Questions

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

I lost R.java class when I clean my project. So please how can I

  • 0

I lost R.java class when I clean my project. So please how can I get it back? Cause R.java define automatically in gen. Is there any way to do that?

I have imported a package to my project and I use it in project classes and pages but when I navigate to a page use a package the app gives a waiting and it still waiting.

How can I stop this problem and go to the next page?

public class HomePage extends Activity {    
    @Override
        protected void onCreate(Bundle savedInstanceState) {
            // TODO Auto-generated method stub
            super.onCreate(savedInstanceState);
            setContentView(R.layout.person);
            Carousel car=(Carousel) findViewById(R.id.carousel);

            car.setOnItemClickListener(new OnItemClickListener(){

                public void onItemClick(CarouselAdapter<?> parent, View view,
                        int position, long id) {
                    // TODO Auto-generated method stub
                    if(position==0){
                        Intent i=new Intent(HomePage.this,StudentInformationActivity.class);

                        startActivity(i);
                        }else if(position==1){
                            Intent i=new Intent(HomePage.this,PersonalProfileActivity.class);
                            startActivity(i);
                        }

                }

            });
        }


    }

on this page that we used person as activities but it doesn’t work.

  • 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-10T16:13:51+00:00Added an answer on June 10, 2026 at 4:13 pm

    Sometimes when you clean your project the R file disappears, I had the same issue.

    The way I fixed it was:

    • Make sure all the import android.R was removed
      -Clean again (if this doesn’t fix it, restart eclipse and try again)

    Or

    • Put the pointers to R file in comment f.e. // setContentView(R.layout.main);
    • If all the pointers to R file are in comment, you should get only warnings in the file, and hopefully errors somewhere else.
    • Fix the errors and then uncomment the pointers. Sometimes eclipse ignores some errors and drops the R file and then says nothing about it, which is annoying, but this will fix it. 🙂

    • If this still doesn’t work, you can try create a new project and copy paste your code in it.

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

Sidebar

Related Questions

I'm trying to get back into Java - it's been about 5 years since
I'm a Java programer lost in C++ and pointers :D I have an array
I am trying to run cut inside a java program, but I am lost
Lost in the multitude of Java API's and XML configuration. I am trying to
Consider the following snippet: import java.util.*; public class EqualsOverload { public static void main(String[]
I need a bit help with Java's ImageIO API. I seem to be lost
I'm lost. I've been searching the web for days now and I just can't
From a class extending java.beans.PropertyEditorSupport : /** * Sets the property value by parsing
This is a bit of a generic question about java class design and how
I have one War files (a Java application) consist of 64 class file along

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.