My solution has two Xamarin projects.
Websockets.Droid, a xamarin binding library.
Websockets.DroidTest, a xamarin android unit test project
The Websockets.Droid binding library has 2 jar files and one .cs file.
androidasync.jar, a websocket library file. this file is in the jar folder and is marked as 'EmbeddedReferenceJar', I do not want to expose this class to my C# projects, it is just here as a dependency. I have also tried 'ReferenceJar'
Websockets.DroidBridge.jar This java project has two very simple classes which are meant to act as a C# friendly interface for the androidasync library. This is an 'InputJar'.
The Websockets.Droid binding library builds fine. Moving on I referenced this binding library in my test project, and, it fails with the following errors.
I have two questions.
1) Why is it failing and how can I fix this.
2) Why do I see .java files ? The Jar files are compiled not 'source' jar files.
error: cannot find symbol if (getClass () == WebsocketConnectionDroid.class) symbol: method getClass() location: class WebsocketConnectionDroid Websockets.DroidTests E:\Projects\Github\WebSockets.PCL\Websockets.DroidTests\obj\Debug\android\src\md5158179e487b6bdbd2eba69c7c4ae3833\WebsocketConnectionDroid.java 25
error: package websockets.DroidBridge does not exist extends websockets.DroidBridge.BridgeProxy Websockets.DroidTests E:\Projects\Github\WebSockets.PCL\Websockets.DroidTests\obj\Debug\android\src\md5158179e487b6bdbd2eba69c7c4ae3833\WebsocketConnectionDroid.java 5