未找到OnCameraIdleListener(OnCameraChangeListener()已弃用)_Android studio?

时间:2016-08-29 10:39:39

标签: android android-maps-v2 android-maps

我在我的项目上工作并且工作得很好,但突然给我一个错误:

The "text" insertion mode

这是我的傻瓜:

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')
}

在我的代码中告诉我:

enter image description here

1 个答案:

答案 0 :(得分:6)

快速解决方案

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