I added this reply to an open issue on this subject, found here:
http://code.google.com/p/android-vnc-viewer/issues/detail?id=282&q=build
I was able to get mine to build after some poking and prodding. Here
is what I did:
1) Follow the install directions for the SQLiteGen here --
http://code.google.com/p/sqlitegen/
This is a helper plugin for Eclipse that generates some Abstract .java
files that androidVNC uses. Oddly enough, I didn't seem to have to
add com.antlersoft.android.db_xxx.jar to the build path of androidVNC
to make it work. The needed files were still put under the /gen
directory.
To carry out the following two steps, go to Project->Properties-
>Android and change the respective Build Targets. My build targets
were not set, so I had to set them manually. If yours are pre-set to
something >= API level 8, disregard the next two instructions.
2) Set the ZoomerWithKeys build target to 4 (appears to be arbitrary
for this particular project, as long as its at a minimum of three). I
used the Google APIs version.
3) Set the androidVNC build target to 10. It will warn you that the
attributes are lower than the project target API level, this is okay.
This app uses several attributes within the AndroidManifest.xml that
require >= level 8 API (android:installLocation, for example).
4) The Java compiler compliance level appears to default to 1.5 for
the androidVNC project. This causes a whole host of problems
involving the keyword '@Override'. To fix this, go to Window-
>Preferences->Java->Compiler->Configure Project Specific Settings
(upper right hand part of the preferences window). Select androidVNC
as the project to configure. Change the "Compiler compliance level"
to 1.6.
Note: If androidVNC is not showing up as a project to configure in
the new window, return to the main eclipse window, then right click
the androidVNC project->Android Tools->Fix project properties. This
will allow it to build with a multitude of errors, then allow you to
select androidVNC to be changed for step 4.
On Dec 8 2011, 4:31 pm, Santhosh <
santhoshkumar.sunderra...@gmail.com>
wrote: