Author Topic: Problems during compilation  (Read 1838 times)

0 Members and 1 Guest are viewing this topic.

prititalhan

  • Newbie
  • *
  • Posts: 6
    • View Profile
Problems during compilation
« on: 17. December 2010, 17:53:28 »
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

  • Developer
  • *****
  • Posts: 126
    • View Profile
Re: Problems during compilation
« Reply #1 on: 18. December 2010, 14:09:35 »
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