I am trying to run a simple app on the Google TV emulator.
The app has a jar, it is both in the build path and in the lib folder, it works on ICS and on Honeycomb 3.1 (tablet) but on the Google TV emulator, it crashes:
D/dalvikvm( 1707): DexOpt: 'Ljavax/jmdns/ServiceListener;' has an earlier definition; blocking out
As if the lib had already been loaded.
Anyone seen this before?
Thanks
Yes, I have seen this before. Google TV is using JMDNS for supporting software remote controls. When I included JMDNS in my own app it was always loading the classes from the version already installed on the device instead of my copy of the classes. I did all of my testing on a Google TV device and didn't use the emulator. The JMDNS version on Google TV also appears to be older than the latest version of JMDNS. In my code I called newer functions that failed on the device even though my copy of the JMDNS jar had those newer function signatures. It looks like the class loader on Android/Google TV is always picking up the system jar files before it gets to each app's jar files.