Skip to content

Cannot resolve symbol 'LocationTrackerUpdateModule' #31

@manishautomatic

Description

@manishautomatic

I am working on including Geolocator in my JAVA based Android Studio project.

I have added below in my build.gradle file inside dependencies section --
implementation 'com.sprotte:Geolocator:latest'

Next, in my MainActivity.java class I extend the LocationTrackerWorker as specified in the readme file --

`
public class LocationTrackerWorker extends LocationTrackerUpdateModule {

    @Override
    public void onLocationResult(@NotNull LocationResult location) {

        Log.v(GeoFenceIntentService.class.getSimpleName(), "onLocationResult " + location);
        );
    }
}

`

However the class LocationTrackerUpdateModule does not get resolved.
I tried manually adding import com.sprotte.geolocator.tracking.LocationTracker; at the top of my Activity. That also gives the error Cannot resolve symbol 'sprotte'.

Kindly advice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions