Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navigation sample fails to compile #8

Open
karczews opened this issue Mar 15, 2021 · 2 comments
Open

Navigation sample fails to compile #8

karczews opened this issue Mar 15, 2021 · 2 comments

Comments

@karczews
Copy link

I'm getting compilation error when trying to compile navigation sample app - see

git/car-samples/car_app_library/navigation/src/main/java/androidx/car/app/samples/navigation/car/NavigationSession.java:110: error: <anonymous androidx.car.app.samples.navigation.car.NavigationSession$2> is not abstract and does not override abstract method onProviderDisabled(String) in LocationListener
            new LocationListener() {
@asimwaleed
Copy link

 LocationListener mLocationListener =
            new LocationListener() {
                @Override
                public void onLocationChanged(Location location) {
                    mNavigationCarSurface.updateLocationString(getLocationString(location));
                }

                @Override
                public void onStatusChanged(String provider, int status, Bundle extras) {

                }

                @Override
                public void onProviderEnabled(String provider) {

                }

                @Override
                public void onProviderDisabled(String provider) {

                }
            };

Try this

@Android-AutoErrors
Copy link

@asimwaleed and @karczews Are you able to detect your NAVIGATION app in Android Auto or desktop head unit? If so, do you mind sharing your manifest file and Gradle file (only related to the android auto part)? That would be of great help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants