DictionaryForMids Forum

DictionaryForMIDs for Android devices => Problems => Topic started by: prititalhan on 17. December 2010, 17:53:28

Title: Problems during compilation
Post by: prititalhan 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
Title: Re: Problems during compilation
Post by: axin 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/installing.html)
http://developer.android.com/sdk/eclipse-adt.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