[android-developers] Re: Importing existing projects to Android

2010-07-12 Thread kypriakos
It seems that the ADT does not generate the .apk and .dex files which is a consequence of the jars files I include in the src code. Although the code compiles fine in Android SDK, when I try to run the emulator I keep getting the message that errors exist in the project, and although those

[android-developers] Re: Importing existing projects to Android

2010-07-12 Thread mah
A common fix-all I've had to apply when importing existing projects is to right-click the project in the Eclipse package explorer and choose Android Tools-Fix Project Properties. Then (assuming your JARs appear in the build path configuration, if necessary) Project-Clean to clean the new project,

[android-developers] Re: Importing existing projects to Android

2010-07-10 Thread kypriakos
RIght but that didn't do it Craig. It does build the files I have imported successfully but the R class does not get generated. I have a feeling a hidden issue somewhere (even though the Error Log does not show anything in Eclipse) is preventing this generation. I may try to create a new empty

[android-developers] Re: Importing existing projects to Android

2010-07-10 Thread kypriakos
So I generated a new project, and of course the R.java is in place as expected, imported the src dirs from the other project into the src dir of this one, checked all of them and no errors are displayed, but still when I run the app (without the Activity class calling any of these imported

[android-developers] Re: Importing existing projects to Android

2010-07-09 Thread Indicator Veritatis
Another thing to try (when 'clean' fails) is to edit the whitespace in main.xml, forcing Android to treat it as news. This in turn means 'rebuild R.java'. Usually, this works. I have seen it fail only rarely. Then I copy all my files to a safe place and create the project all over from scratch:(

[android-developers] Re: Importing existing projects to Android

2010-07-09 Thread Coco's Jungle
Go to the problem tab and if there are messages that don't go away, right click them and delete them. Ignore the warning about you can't get it back. Then do a Project -- Clean, and try running the project again. I was getting these every time I tried to Run while I was editing an xml file. You

[android-developers] Re: Importing existing projects to Android

2010-07-08 Thread kypriakos
Hi all, trying once more to see if anyone had this problem before. Thanks On Jul 7, 1:07 am, Demetris demet...@ece.neu.edu wrote: Hi all, I generated a standard Android under Eclipse (using the plugin) and I imported code from an existing project (J2SE-based). I was able to iron out all

[android-developers] Re: Importing existing projects to Android

2010-07-08 Thread kypriakos
David - thanks very much for the detailed and very informative response. I appreciate it. I looked into the Error Log of the IDE and I did see that certain libraries (external libraries that I needed to reference through my code, such as BouncyCastle etc.) had also a txt file with them that the

[android-developers] Re: Importing existing projects to Android

2010-07-08 Thread kypriakos
Never mind - I needed to manually clean up the build path file as well to match the fact that the lib didn't have those files anymore. So now I can compile the project with no errors either visible (with x next to the dir or any file in the project tree) or in the Error Log that Eclipse provides.

[android-developers] Re: Importing existing projects to Android

2010-07-08 Thread kypriakos
It seems that the gen dir is empty and that no generated java classes are not being generated (no R.java etc.). I am assuming the Clean Project removed them (??). How can they be regenerated? Thanks again On Jul 8, 3:37 pm, kypriakos demet...@ece.neu.edu wrote: Never mind - I needed to

Re: [android-developers] Re: Importing existing projects to Android

2010-07-08 Thread Robert Craig
Just try save the project again. It seems to be the case that those files get generated when it builds. A save in eclipse builds the package. On Thu, Jul 8, 2010 at 3:42 PM, kypriakos demet...@ece.neu.edu wrote: It seems that the gen dir is empty and that no generated java classes are not

[android-developers] Re: Importing existing projects to Android

2010-07-07 Thread Bagatelle: David Lee Evans
On Jul 7, 1:07 am, Demetris demet...@ece.neu.edu wrote: Hi all, I generated a standard Android under Eclipse (using the plugin) and I imported code from an existing project (J2SE-based). I was able to iron out all the complaints from the Android SDK 2.1 (compile errors). However, the