Search code examples
androidandroid-maps-v2android-maps

OnCameraIdleListener not found ( OnCameraChangeListener() is deprecated ) _ Android studio?


I was work on my project and work good but suddenly get me an error :

enter image description here

Here is my gradle :

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "24.0.1"

    int minSdk = hasProperty('devMinSdk') ? devMinSdk.toInteger() : 16
    defaultConfig {
        minSdkVersion minSdk
        applicationId "com.ir.zanis.marketing_manager"
        minSdkVersion 16
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
        vectorDrawables.useSupportLibrary = true
        multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_7
        targetCompatibility JavaVersion.VERSION_1_7
    }
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile 'com.android.support:appcompat-v7:23.4.0'
    compile 'com.android.support:design:23.4.0'
    compile 'com.google.android.gms:play-services-maps:9.2.1'
    compile 'com.google.android.gms:play-services-places:9.2.1'
    compile 'com.android.support:recyclerview-v7:23.+'
    compile 'com.android.support:cardview-v7:23.+'
    compile 'com.google.maps.android:android-maps-utils:0.4+'
    compile files('libs/volley.jar')
    compile files('libs/androiddbviewer.jar')
}

In my code show me :

enter image description here


Solution

  • quick solution

    compile 'com.google.maps.android:android-maps-utils:0.4.2