android / car-samples

Multiple samples showing best practices for car app development on both Android Auto and Android Automotive OS.
Apache License 2.0
358 stars 166 forks source link

Navigation sample fails to compile #8

Open karczews opened 3 years ago

karczews commented 3 years ago

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 commented 3 years ago
 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 commented 3 years ago

@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.