Using Maps api v2 and it works perfectly with 4.4 , 5.0, 5.1, 5.1.1 , 6 but app crashes when I try 4.2.2. I've been doing lots of research but nothing seems to work. Here's the complete log.
FATAL EXCEPTION: main
java.lang.NoClassDefFoundError: com.google.android.gms.common.
at com.google.android.gms.measurement.internal.zzk$zza.get(
at com.google.android.gms.measurement.internal.zzc.zzkG(
at com.google.android.gms.measurement.internal.zzr.<init>(
at com.google.android.gms.measurement.internal.zzx.zzb(
at com.google.android.gms.measurement.internal.zzt.<init>(
at com.google.android.gms.measurement.internal.zzx.zzBQ(
at com.google.android.gms.measurement.internal.zzt.zzaU(
at com.google.android.gms.measurement.ource)
at android.content.ContentProvider.attachInfo(ContentProvider
at android.app.ActivityThread.installProvider(ActivityThread.
at android.app.ActivityThread.installContentProviders(
at android.app.ActivityThread.handleBindApplication(
at android.app.ActivityThread.access$1300(ActivityThread.
at android.app.ActivityThread$H.handleMessage(ActivityThread.
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5041)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
at com.android.internal.os.ZygoteInit.main(ZygoteInit.
at dalvik.system.NativeStart.main(Native Method)
any ideas?
Here´s my build.gradle
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
repositories {
mavenCentral()
maven {
url "http://dl.bintray.com/glomadrian/maven"
}
maven { url 'https://maven.fabric.io/public' }
}
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "py.com.roshka.billeterabancard"
minSdkVersion 14
targetSdkVersion 23
versionCode 1
versionName "1.0"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.wang.avi:library:1.0.1'
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.github.glomadrian:loadingballs:1.1@aar'
compile 'com.android.support:appcompat-v7:23.1.0'
compile 'com.google.android.gms:play-services:8.4.0'
compile 'com.android.support:design:23.1.0'
compile 'com.android.support:recyclerview-v7:23.1.0'
compile 'com.squareup.okio:okio:1.0.+'
compile 'com.squareup.okhttp:okhttp:1.5.4'
compile 'com.squareup.okhttp:okhttp-urlconnection:2.0.0'
compile 'com.squareup.retrofit:retrofit:1.8.0'
compile 'com.pnikosis:materialish-progress:1.7'
compile 'com.google.code.gson:gson:2.3'
compile 'me.dm7.barcodescanner:zxing:1.8.3'
compile 'me.dm7.barcodescanner:zbar:1.8.3'
compile('com.crashlytics.sdk.android:crashlytics:2.5.5@aar') {
transitive = true;
}
}