ошибка: не удается найти класс символов MapSettings - здесь Maps Android SDK - PullRequest
0 голосов
/ 03 мая 2018

Я следую этим инструкциям, чтобы написать простое приложение с Here Maps Android SDK. Создать простое приложение, используя здесь Android SDK

Откуда этот метод должен получить MapSettings? Я не вижу этот класс в прилагаемой библиотеке? HERE_Android_SDK_Starter_v3.7_9

private void initialize() {
    setContentView(R.layout.activity_maps);

    // Search for the map fragment to finish setup by calling init().
    mapFragment = (MapFragment) getFragmentManager().findFragmentById(R.id.mapfragment);

    // Set up disk cache path for the map service for this application
    boolean success = com.here.android.mpa.common.MapSettings.setIsolatedDiskCacheRootPath(
            "{YOUR_CACHE_LOCATION}", "{YOUR_INTENT_NAME}");

    if (!success) {
        Toast.makeText(getApplicationContext(), "Unable to set isolated disk cache path.", Toast.LENGTH_LONG);
    } else {
        mapFragment.init(new OnEngineInitListener() {
            @Override
            public void onEngineInitializationCompleted(OnEngineInitListener.Error error) {
                if (error == OnEngineInitListener.Error.NONE) {
                    // retrieve a reference of the map from the map fragment
                    map = mapFragment.getMap();
                    // Set the map center to the Vancouver region (no animation)
                    map.setCenter(new GeoCoordinate(49.196261, -123.004773, 0.0),
                            Map.Animation.NONE);
                    // Set the zoom level to the average between min and max
                    map.setZoomLevel((map.getMaxZoomLevel() + map.getMinZoomLevel()) / 2);
                } else {
                    System.out.println("ERROR: Cannot initialize Map Fragment");
                }
            }
        });
    }
}
...