maddevsio / mad-location-manager

Mad Location Manager is a library for GPS and Accelerometer data "fusion" with Kalman filter
MIT License
533 stars 154 forks source link

Facing issue in building the Project in Android Studio #85

Closed dharmendra08 closed 4 years ago

dharmendra08 commented 4 years ago

I built the project in Android studio and it is showing some error.

Function Name - KalmanLocationService.Settings

constructor Settings in class Settings cannot be applied to given types;
required: double,int,int,int,int,int,double,ILogger,boolean,boolean,double,double
found: double,int,int,int,int,int,double,MainActivity,boolean,double,double
reason: actual and formal argument lists differ in length

Showing this error. Please help.

Lezh1k commented 4 years ago

Hello. Can you share your call code?

  1. MainActivity -> should implement ILogger (should have method log or something like that)
  2. You missed one boolean variable.

Best regards, Oleg

dharmendra08 commented 4 years ago

Thanks, @Lezh1k for the speedy response.

I am able to resolve this issue now and build the application.

I had to add a boolean variable for onlyGpsSensor.