Some classes not seen in Android project after jar binding.
For example jar has 2 classes: MfsResponse, MfsRunner. Class MfsResponse from jar is successfully found and MfsRunner is not.
Screenshots are provided of jar binding.
Later we added the library successfully.
And then we have to initialize class MfsRunner.
Here is the part of the code where we try to initialize class MfsRunner
phone = model.details.CustomerPhone;
var g = service.GetTokenForMasterPass("905355426170").Result;
var token = g.token;
MfsRunner mfs = new MfsRunner();
mfs.GetCards(msisdn, token, new GCR());
mfs.Register(this.Context, token, msisdn,
new FF(), true);
mfs.CheckMasterPassEndUser(activity, token, msisdn, new FF(), true);
However we receive the following error.
Error 57 The type or namespace name 'MfsRunner' could not be found (are you missing a using directive or an assembly reference?) C:\Projects\MB\MB\MB.Droid\MasterPassRenderer.cs 136 17 MB.Droid
Used library and sample Android code is attached as well.
I ran into a similar problem and swapping to jdk 1.7 fixed it. https://forums.xamarin.com/discussion/47490/do-not-use-java-jdk-1-8-when-generating-android-bindings-in-xamarin-studio
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies