I'm using Eclipse juno and i have installed all plugs in. Everything was working fine, but this morning when i opened my project there wasn't R.java. I tried to create new project but in New project R.java was missing also. I tried everything(clean project,change to "wrap content"), but nothing. There are no errors because this is new project where single line of code isn't written, there is just some default code.
Asked
Active
Viewed 1,429 times
-3
-
1Are u creating Android Application Project in eclipse...? – nidhi_adiga Mar 28 '13 at 11:39
1 Answers
1
Hey so this is a bug with eclipse refer to the thread for more deatils but basically: do not wrap any of your content but instead check your imports for import android.R this has been covered here already on SO R cannot be resolved - Android error basically the problem is
Note: Eclipse sometimes likes to add an "import android.R" statement at the top of your files that use resources, especially when you ask Eclipse to sort or otherwise manage imports. This will cause your make to break. Look out for these erroneous import statements and delete them.

Community
- 1
- 1

brendosthoughts
- 1,683
- 5
- 21
- 38
-
I read and tried all this before asking question, nothing worked. I will just try re-instaliling everything. Eclipse generate BuildConfig.java but not R.java – Matej Pavlović Mar 28 '13 at 11:54
-
I would give it another look through before resorting to this, but if your sure you have done that, I'm not to sure what the problem could be myself – brendosthoughts Mar 28 '13 at 11:59
-
https://www.box.com/s/nymhxxga6emavv197vb6 Here is screenshoot. I don't want reistalling all, so if you could find what is wrong. – Matej Pavlović Mar 28 '13 at 12:08
-
can you blow out the imports so i can actually see them on you MainActivity.java ... from what it looks like this is indeed your problem – brendosthoughts Mar 28 '13 at 12:10
-
here there are import android.os.Bundle; import android.app.Activity; import android.view.Menu; – Matej Pavlović Mar 28 '13 at 12:12
-
add an import com.example.hoceli.R and then rebuild your project it should fix it – brendosthoughts Mar 28 '13 at 12:14
-
isn't working these are all errors https://www.box.com/s/o1q5a76qs76g96elndry – Matej Pavlović Mar 28 '13 at 12:23
-
-
-
hmm I'm not to sure then sorry ... I edited your question to include your screen shots maybe someone else can help you out – brendosthoughts Mar 28 '13 at 12:41