Question

I'm trying to download and analyze a few apps from F-Droid.com but when I grab all the java files and all the other files and copy them into my IDE (Motodev Studio for Android) errors pop up all over the place because the R.java file is missing. I can't seem to find the reason why the R.java file is absent and the app (obviously) won't run without it. can anyone help? Here is an example of an app I'm trying to download:

http://f-droid.org/repository/browse/?fdid=arity.calculator&fdpage=2

Was it helpful?

Solution

You can not create R.java, it will be automatically generated by system as it's content is based on the resource files (including layouts and preferences).

If you run a clean on the project it should regenerate all the generated java files. If not then may be there are some error in your layout xml

You Can follow this Links

Magic behind R.java file

Developing for Android in Eclipse: R.java not regenerating

R.java is not generating, R cannot be resolved to a variable

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top