Problems during compilation

Started by prititalhan, 17. December 2010, 17:53:28

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

prititalhan

Dear Sir,

When I try to compile the source code for android using Eclipse or Netbeans I get an error due to a file called " R.java ". This file is missing in the source code provided in the SVN repository.

For Ex.  There is one line in DictionaryForMids.java

R.id.itemCopyFromWord:

Here the R points to nowhere.  Please rectify this problem.

I hope you will answer as early as possible!

- Priti

axin

Hi Priti,

the file R.java can be generated by running ant. I strongly recommend using Eclipse with the ADT-Plugin though, as this will automatically handle ant for you.
You could try the following two links that explain setup of SDK and ADT:
http://developer.android.com/sdk/installing.html
http://developer.android.com/sdk/eclipse-adt.html
Feel free to ask me if you encounter any problems on the way.

If you don't want to use Eclipse, maybe this link may help you. As I'm using Eclipse and ADT, I don't have further information on setting this up with NetBeans.
http://developer.android.com/guide/developing/other-ide.html

-Achim