java.lang.NoClassDefFoundError:com.google.maps.android.ui.IconGenerator

时间:2016-08-02 10:28:38

标签: android google-maps

我正在使用Google Maps V2并映射utils来显示群集。当我使用Kitkat在设备上运行我的应用程序时,应用程序崩溃(但适用于M和L设备)。我已经花了3天时间来解决这个问题,但遗憾的是没有看到这个问题。有谁知道这里发生了什么?

E/AndroidRuntime: FATAL EXCEPTION: main
  Process: com.pokespotter, PID: 11479
  java.lang.NoClassDefFoundError: com.google.maps.android.ui.IconGenerator
  at com.google.maps.android.clustering.view.DefaultClusterRenderer.<init>(DefaultClusterRenderer.java:133)
  at com.google.maps.android.clustering.ClusterManager.<init>(ClusterManager.java:72)
  at com.google.maps.android.clustering.ClusterManager.<init>(ClusterManager.java:64)
  at com.pokespotter.ActivityMap.onMapReady(ActivityMap.java:1409)
  at com.google.android.gms.maps.SupportMapFragment$zza$1.zza(Unknown Source)
  at com.google.android.gms.maps.internal.zzl$zza.onTransact(Unknown Source)
  at android.os.Binder.transact(Binder.java:361)
  at xz.a(:com.google.android.gms.DynamiteModulesB:82)
  at maps.ad.u$5.run(Unknown Source)
  at android.os.Handler.handleCallback(Handler.java:733)
  at android.os.Handler.dispatchMessage(Handler.java:95)
  at android.os.Looper.loop(Looper.java:146)
  at android.app.ActivityThread.main(ActivityThread.java:5593)
  at java.lang.reflect.Method.invokeNative(Native Method)
  at java.lang.reflect.Method.invoke(Method.java:515)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
  at dalvik.system.NativeStart.main(Native Method)

我的gradle configs:

buildscript {
    repositories {
        jcenter()
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.0.0'
        classpath 'com.google.gms:google-services:1.5.0'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()

    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}



 apply plugin: 'com.android.application'

    android {
        compileSdkVersion 23
        buildToolsVersion "23.0.2"
        useLibrary 'org.apache.http.legacy'

        defaultConfig {
            applicationId "com.pokespotter"
            minSdkVersion 15
            targetSdkVersion 23
            versionCode 1
            versionName "1.0"
            multiDexEnabled true
        }
        buildTypes {
            release {
                shrinkResources true
                minifyEnabled true
                proguardFiles getDefaultProguardFile('proguard-android.txt'),
                        'proguard-rules.pro'
            }
        }
    }

    dependencies {
        compile fileTree(dir: 'libs', include: ['*.jar'])
        testCompile 'junit:junit:4.12'

        compile 'com.android.support:appcompat-v7:23.4.0'
        compile 'com.google.android.gms:play-services:8.3.0'
        compile 'com.google.maps.android:android-maps-utils:0.4'
        compile 'com.android.support:cardview-v7:23.4.0'
        compile 'com.android.support:design:23.4.0'
        compile 'com.squareup.picasso:picasso:2.5.2'
        compile 'com.github.markushi:circlebutton:1.1'
        compile 'com.github.rahatarmanahmed:circularprogressview:2.4.0'
        compile 'com.facebook.android:facebook-android-sdk:[4,5)'
        compile 'com.android.support:support-v4:23.4.0'
        compile 'com.github.clans:fab:1.6.2'
    }
    apply plugin: 'com.google.gms.google-services'

0 个答案:

没有答案