Problem with jar binding (Some classes not seen in Android project)

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.

Tagged:

Posts

  • YalkinOzemelYalkinOzemel BYMember
    edited January 2016

    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

    if (string.IsNullOrEmpty(model.details.CustomerPhoneMasterPass))
                {
                    phone = model.details.CustomerPhone;
                    //TODO: change
                    var g = service.GetTokenForMasterPass("905355426170").Result;
                    var token = g.token;
                    MfsRunner mfs = new MfsRunner();
    
                //Com.Phaymobile.Mastercard.Android
                MfsResponse res;
    
                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.

    1.jpg 64.2K
    2.jpg 34.3K
  • YalkinOzemelYalkinOzemel BYMember

    Used library and sample Android code is attached as well.

Sign In or Register to comment.