• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps 

Today I downloaded a working version of the Android vnc project via svn checkout http://android-vnc-viewer.googlecode.com/svn/trunk/

I have many problems to get this project build.
If I compile I get the Dalvik error.
On the internet I read that you have to clean your project.
But the problem is that this project has .java file included in de /gen folder other then R.java.
So when I try to clean my project, all files in the gen folder are deleted and and only the R.java file comes back.

I really don't know how to get this project compiled.
And it is also difficult to see the original platform version where this project is coded for.

Do you guys have any suggestions to get this project build properly?
 
What other file is in the gen directory?

Is there a build file that came with the checkout? It may be that the project is setup to be built with ant and not eclipse.

Technically they should never have checked in the gen folder.... but I'm guilty of this bad habit myself :)
 
In /gen there are java files that possibly comes from a linked project.
If I hit project > build project it simply takes the provided build.xml?
Is I try it with ant then it gives the same result.

There is also a android1.6 lib included in the project.
I don't know if this is right or not
 
Project > build does not use the build.xml file. If the project came with a build file you should use ant... should be a lot of tutorials out there for using a build file and ant -- just need to google them.

Other than that I'm not sure what to tell ya sorry :(
 
I still have errors, but it was opening perfectly a week ago.
I have done everything.
Reinstalled javaRE, eclipse, androidSDK etc.

Is here anyone willing to grep the following svn and try to open en build it?
http://android-vnc-viewer.googlecode.com/svn/trunk/

android-VNC is the main project.
 
For what it's worth, I'm having similar problems in Eclipse trying to build the Yamba project, currently in Chapter 6
of "Learning Android". The errors start with:

java.lang.IllegalArgumentException: already added: Lorg/json/JSONArray;

and, after a long series of what my or may not be errors, I see the same error you did about not being able
to convert to Dalvik (same error 1, etc.)

My full console listing is in "Stuck in Chapter 6 of 'Learning Android'" where I'm asking a similar question
(I'd originally asked something different, but it turned out to be a typo....but then, it turned into what LOOKS
like an Eclipse internal error of some sort. I tried re-booting Mickeysoft Windoze, thinking maybe it just
needed a reboot after too many memory-intensive programs being run...sadly, it didn't change anything.
The author of the book does say there will be some things that need to be corrected, but I don't think
he meant Eclipse errors......
 
Back
Top Bottom