Integrating firebase causing the crash in android
After I integrated the firebase by following the docs ... I am getting a crash in one of the lines in application class
GoogleAnalytics analytics = GoogleAnalytics.getInstance(this);
Log:
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/internal/zzbq;
at com.google.android.gms.internal.zzark.zzbl(Unknown Source:0)
at com.google.android.gms.analytics.GoogleAnalytics.getInstance(Unknown Source:0)
at com.bmw.bmwsales.BMWSalesApplication.onCreate(BMWSalesApplication.java:83)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1122)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6517)
at android.app.ActivityThread.-wrap2(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1963)
at android.os.Handler.dispatchMessage(Handler.java:108)
at android.os.Looper.loop(Looper.java:166)
at android.app.ActivityThread.main(ActivityThread.java:7425)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.common.internal.zzbq" on path: DexPathList[[zip file "/data/app/com.bmw.bmwsales-uVdnAKZw9szHT_S3LTCH0A==/base.apk"],nativeLibraryDirectories=[/data/app/com.bmw.bmwsales-uVdnAKZw9szHT_S3LTCH0A==/lib/arm64, /system/lib64, /vendor/lib64, /product/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at com.google.android.gms.internal.zzark.zzbl(Unknown Source:0)
at com.google.android.gms.analytics.GoogleAnalytics.getInstance(Unknown Source:0)
at com.bmw.bmwsales.BMWSalesApplication.onCreate(BMWSalesApplication.java:83)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1122)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6517)
at android.app.ActivityThread.-wrap2(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1963)
at android.os.Handler.dispatchMessage(Handler.java:108)
at android.os.Looper.loop(Looper.java:166)
at android.app.ActivityThread.main(ActivityThread.java:7425)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
Code:
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
buildToolsVersion '28.0.3'
useLibrary 'org.apache.http.legacy'
defaultConfig {
applicationId "package-name"
minSdkVersion 16
targetSdkVersion 28
versionCode 16
versionName "2.1"
multiDexEnabled true
}
dexOptions {
javaMaxHeapSize "4g"
}
lintOptions {
checkReleaseBuilds false
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
repositories {
mavenCentral()
maven {
url 'http://maven.batch.com/release'
}
maven {
url 'https://maven.google.com/'
name 'Google'
}
}
dependencies {
implementation project(':library')
implementation project(':urlImageViewHelper')
//implementation 'com.google.android.gms:play-services:9.6.1'
implementation 'com.google.android.gms:play-services:12.0.1'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:appcompat-v7:28.0.0'
//implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:animated-vector-drawable:28.0.0'
implementation 'com.android.support:mediarouter-v7:28.0.0'
implementation 'com.google.code.gson:gson:2.2.4'
//implementation 'com.batch.android:batch-sdk:1.6.0'
implementation files('libs/bolts-android-1.2.0.jar')
implementation files('libs/glide-3.4.0.jar')
implementation files('libs/imagecoverflow-master.jar')
implementation files('libs/mint-4.0.7.jar')
implementation files('libs/Parse-1.9.2.jar')
implementation files('libs/universal-image-loader-1.9.3-with-sources.jar')
implementation files('libs/YouTubeAndroidPlayerApi.jar')
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.loopj.android:android-async-http:1.4.9'
implementation 'com.github.d-max:spots-dialog:0.4@aar'
implementation 'com.batch.android:batch-sdk:1.13+'
implementation "com.google.firebase:firebase-core:16.0.1"
implementation 'com.android.support:multidex:1.0.0'
/*implementation 'com.google.android.gms:play-services-auth:10.0.1'
implementation 'com.google.firebase:firebase-database:16.0.1'
implementation 'com.google.firebase:firebase-storage:16.0.1'*/
}
apply plugin: 'com.google.gms.google-services'
android firebase google-analytics
|
show 1 more comment
After I integrated the firebase by following the docs ... I am getting a crash in one of the lines in application class
GoogleAnalytics analytics = GoogleAnalytics.getInstance(this);
Log:
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/internal/zzbq;
at com.google.android.gms.internal.zzark.zzbl(Unknown Source:0)
at com.google.android.gms.analytics.GoogleAnalytics.getInstance(Unknown Source:0)
at com.bmw.bmwsales.BMWSalesApplication.onCreate(BMWSalesApplication.java:83)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1122)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6517)
at android.app.ActivityThread.-wrap2(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1963)
at android.os.Handler.dispatchMessage(Handler.java:108)
at android.os.Looper.loop(Looper.java:166)
at android.app.ActivityThread.main(ActivityThread.java:7425)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.common.internal.zzbq" on path: DexPathList[[zip file "/data/app/com.bmw.bmwsales-uVdnAKZw9szHT_S3LTCH0A==/base.apk"],nativeLibraryDirectories=[/data/app/com.bmw.bmwsales-uVdnAKZw9szHT_S3LTCH0A==/lib/arm64, /system/lib64, /vendor/lib64, /product/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at com.google.android.gms.internal.zzark.zzbl(Unknown Source:0)
at com.google.android.gms.analytics.GoogleAnalytics.getInstance(Unknown Source:0)
at com.bmw.bmwsales.BMWSalesApplication.onCreate(BMWSalesApplication.java:83)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1122)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6517)
at android.app.ActivityThread.-wrap2(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1963)
at android.os.Handler.dispatchMessage(Handler.java:108)
at android.os.Looper.loop(Looper.java:166)
at android.app.ActivityThread.main(ActivityThread.java:7425)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
Code:
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
buildToolsVersion '28.0.3'
useLibrary 'org.apache.http.legacy'
defaultConfig {
applicationId "package-name"
minSdkVersion 16
targetSdkVersion 28
versionCode 16
versionName "2.1"
multiDexEnabled true
}
dexOptions {
javaMaxHeapSize "4g"
}
lintOptions {
checkReleaseBuilds false
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
repositories {
mavenCentral()
maven {
url 'http://maven.batch.com/release'
}
maven {
url 'https://maven.google.com/'
name 'Google'
}
}
dependencies {
implementation project(':library')
implementation project(':urlImageViewHelper')
//implementation 'com.google.android.gms:play-services:9.6.1'
implementation 'com.google.android.gms:play-services:12.0.1'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:appcompat-v7:28.0.0'
//implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:animated-vector-drawable:28.0.0'
implementation 'com.android.support:mediarouter-v7:28.0.0'
implementation 'com.google.code.gson:gson:2.2.4'
//implementation 'com.batch.android:batch-sdk:1.6.0'
implementation files('libs/bolts-android-1.2.0.jar')
implementation files('libs/glide-3.4.0.jar')
implementation files('libs/imagecoverflow-master.jar')
implementation files('libs/mint-4.0.7.jar')
implementation files('libs/Parse-1.9.2.jar')
implementation files('libs/universal-image-loader-1.9.3-with-sources.jar')
implementation files('libs/YouTubeAndroidPlayerApi.jar')
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.loopj.android:android-async-http:1.4.9'
implementation 'com.github.d-max:spots-dialog:0.4@aar'
implementation 'com.batch.android:batch-sdk:1.13+'
implementation "com.google.firebase:firebase-core:16.0.1"
implementation 'com.android.support:multidex:1.0.0'
/*implementation 'com.google.android.gms:play-services-auth:10.0.1'
implementation 'com.google.firebase:firebase-database:16.0.1'
implementation 'com.google.firebase:firebase-storage:16.0.1'*/
}
apply plugin: 'com.google.gms.google-services'
android firebase google-analytics
Create a class GoogleAnalytics
– suresh madaparthi
Nov 13 '18 at 6:48
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.common.internal.zzbq" on path: DexPathList[[zip file "/data/app/com.bmw.bmwsales-uVdnAKZw9szHT_S3LTCH0A==/base.apk"],nativeLibraryDirectories=[/data/app/com.bmw.bmwsales-uVdnAKZw9szHT_S3LTCH0A==/lib/arm64, /system/lib64, /vendor/lib64, /product/lib64]] check this error
– suresh madaparthi
Nov 13 '18 at 6:49
where are you usingGoogleAnalytics analytics = GoogleAnalytics.getInstance(this);
? in Activity or Fragment?
– Ali Ahmed
Nov 13 '18 at 7:37
GoogleAnalytics analytics = GoogleAnalytics.getInstance(this); analytics.setLocalDispatchPeriod(1800); tracker = analytics.newTracker("myid"); tracker.enableExceptionReporting(true); tracker.enableAdvertisingIdCollection(true); tracker.enableAutoActivityTracking(true);
..... Have added in application class
– Devrath
Nov 13 '18 at 7:39
It was working fine ... I am getting this error after adding the lineimplementation "com.google.firebase:firebase-core:16.0.1"
in cradle which is new firebase implementation
– Devrath
Nov 13 '18 at 7:40
|
show 1 more comment
After I integrated the firebase by following the docs ... I am getting a crash in one of the lines in application class
GoogleAnalytics analytics = GoogleAnalytics.getInstance(this);
Log:
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/internal/zzbq;
at com.google.android.gms.internal.zzark.zzbl(Unknown Source:0)
at com.google.android.gms.analytics.GoogleAnalytics.getInstance(Unknown Source:0)
at com.bmw.bmwsales.BMWSalesApplication.onCreate(BMWSalesApplication.java:83)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1122)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6517)
at android.app.ActivityThread.-wrap2(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1963)
at android.os.Handler.dispatchMessage(Handler.java:108)
at android.os.Looper.loop(Looper.java:166)
at android.app.ActivityThread.main(ActivityThread.java:7425)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.common.internal.zzbq" on path: DexPathList[[zip file "/data/app/com.bmw.bmwsales-uVdnAKZw9szHT_S3LTCH0A==/base.apk"],nativeLibraryDirectories=[/data/app/com.bmw.bmwsales-uVdnAKZw9szHT_S3LTCH0A==/lib/arm64, /system/lib64, /vendor/lib64, /product/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at com.google.android.gms.internal.zzark.zzbl(Unknown Source:0)
at com.google.android.gms.analytics.GoogleAnalytics.getInstance(Unknown Source:0)
at com.bmw.bmwsales.BMWSalesApplication.onCreate(BMWSalesApplication.java:83)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1122)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6517)
at android.app.ActivityThread.-wrap2(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1963)
at android.os.Handler.dispatchMessage(Handler.java:108)
at android.os.Looper.loop(Looper.java:166)
at android.app.ActivityThread.main(ActivityThread.java:7425)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
Code:
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
buildToolsVersion '28.0.3'
useLibrary 'org.apache.http.legacy'
defaultConfig {
applicationId "package-name"
minSdkVersion 16
targetSdkVersion 28
versionCode 16
versionName "2.1"
multiDexEnabled true
}
dexOptions {
javaMaxHeapSize "4g"
}
lintOptions {
checkReleaseBuilds false
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
repositories {
mavenCentral()
maven {
url 'http://maven.batch.com/release'
}
maven {
url 'https://maven.google.com/'
name 'Google'
}
}
dependencies {
implementation project(':library')
implementation project(':urlImageViewHelper')
//implementation 'com.google.android.gms:play-services:9.6.1'
implementation 'com.google.android.gms:play-services:12.0.1'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:appcompat-v7:28.0.0'
//implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:animated-vector-drawable:28.0.0'
implementation 'com.android.support:mediarouter-v7:28.0.0'
implementation 'com.google.code.gson:gson:2.2.4'
//implementation 'com.batch.android:batch-sdk:1.6.0'
implementation files('libs/bolts-android-1.2.0.jar')
implementation files('libs/glide-3.4.0.jar')
implementation files('libs/imagecoverflow-master.jar')
implementation files('libs/mint-4.0.7.jar')
implementation files('libs/Parse-1.9.2.jar')
implementation files('libs/universal-image-loader-1.9.3-with-sources.jar')
implementation files('libs/YouTubeAndroidPlayerApi.jar')
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.loopj.android:android-async-http:1.4.9'
implementation 'com.github.d-max:spots-dialog:0.4@aar'
implementation 'com.batch.android:batch-sdk:1.13+'
implementation "com.google.firebase:firebase-core:16.0.1"
implementation 'com.android.support:multidex:1.0.0'
/*implementation 'com.google.android.gms:play-services-auth:10.0.1'
implementation 'com.google.firebase:firebase-database:16.0.1'
implementation 'com.google.firebase:firebase-storage:16.0.1'*/
}
apply plugin: 'com.google.gms.google-services'
android firebase google-analytics
After I integrated the firebase by following the docs ... I am getting a crash in one of the lines in application class
GoogleAnalytics analytics = GoogleAnalytics.getInstance(this);
Log:
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/internal/zzbq;
at com.google.android.gms.internal.zzark.zzbl(Unknown Source:0)
at com.google.android.gms.analytics.GoogleAnalytics.getInstance(Unknown Source:0)
at com.bmw.bmwsales.BMWSalesApplication.onCreate(BMWSalesApplication.java:83)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1122)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6517)
at android.app.ActivityThread.-wrap2(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1963)
at android.os.Handler.dispatchMessage(Handler.java:108)
at android.os.Looper.loop(Looper.java:166)
at android.app.ActivityThread.main(ActivityThread.java:7425)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.common.internal.zzbq" on path: DexPathList[[zip file "/data/app/com.bmw.bmwsales-uVdnAKZw9szHT_S3LTCH0A==/base.apk"],nativeLibraryDirectories=[/data/app/com.bmw.bmwsales-uVdnAKZw9szHT_S3LTCH0A==/lib/arm64, /system/lib64, /vendor/lib64, /product/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at com.google.android.gms.internal.zzark.zzbl(Unknown Source:0)
at com.google.android.gms.analytics.GoogleAnalytics.getInstance(Unknown Source:0)
at com.bmw.bmwsales.BMWSalesApplication.onCreate(BMWSalesApplication.java:83)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1122)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6517)
at android.app.ActivityThread.-wrap2(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1963)
at android.os.Handler.dispatchMessage(Handler.java:108)
at android.os.Looper.loop(Looper.java:166)
at android.app.ActivityThread.main(ActivityThread.java:7425)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
Code:
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
buildToolsVersion '28.0.3'
useLibrary 'org.apache.http.legacy'
defaultConfig {
applicationId "package-name"
minSdkVersion 16
targetSdkVersion 28
versionCode 16
versionName "2.1"
multiDexEnabled true
}
dexOptions {
javaMaxHeapSize "4g"
}
lintOptions {
checkReleaseBuilds false
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
repositories {
mavenCentral()
maven {
url 'http://maven.batch.com/release'
}
maven {
url 'https://maven.google.com/'
name 'Google'
}
}
dependencies {
implementation project(':library')
implementation project(':urlImageViewHelper')
//implementation 'com.google.android.gms:play-services:9.6.1'
implementation 'com.google.android.gms:play-services:12.0.1'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:appcompat-v7:28.0.0'
//implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:animated-vector-drawable:28.0.0'
implementation 'com.android.support:mediarouter-v7:28.0.0'
implementation 'com.google.code.gson:gson:2.2.4'
//implementation 'com.batch.android:batch-sdk:1.6.0'
implementation files('libs/bolts-android-1.2.0.jar')
implementation files('libs/glide-3.4.0.jar')
implementation files('libs/imagecoverflow-master.jar')
implementation files('libs/mint-4.0.7.jar')
implementation files('libs/Parse-1.9.2.jar')
implementation files('libs/universal-image-loader-1.9.3-with-sources.jar')
implementation files('libs/YouTubeAndroidPlayerApi.jar')
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.loopj.android:android-async-http:1.4.9'
implementation 'com.github.d-max:spots-dialog:0.4@aar'
implementation 'com.batch.android:batch-sdk:1.13+'
implementation "com.google.firebase:firebase-core:16.0.1"
implementation 'com.android.support:multidex:1.0.0'
/*implementation 'com.google.android.gms:play-services-auth:10.0.1'
implementation 'com.google.firebase:firebase-database:16.0.1'
implementation 'com.google.firebase:firebase-storage:16.0.1'*/
}
apply plugin: 'com.google.gms.google-services'
android firebase google-analytics
android firebase google-analytics
edited Nov 13 '18 at 10:38
KENdi
5,7592821
5,7592821
asked Nov 13 '18 at 6:44
DevrathDevrath
22.3k38132186
22.3k38132186
Create a class GoogleAnalytics
– suresh madaparthi
Nov 13 '18 at 6:48
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.common.internal.zzbq" on path: DexPathList[[zip file "/data/app/com.bmw.bmwsales-uVdnAKZw9szHT_S3LTCH0A==/base.apk"],nativeLibraryDirectories=[/data/app/com.bmw.bmwsales-uVdnAKZw9szHT_S3LTCH0A==/lib/arm64, /system/lib64, /vendor/lib64, /product/lib64]] check this error
– suresh madaparthi
Nov 13 '18 at 6:49
where are you usingGoogleAnalytics analytics = GoogleAnalytics.getInstance(this);
? in Activity or Fragment?
– Ali Ahmed
Nov 13 '18 at 7:37
GoogleAnalytics analytics = GoogleAnalytics.getInstance(this); analytics.setLocalDispatchPeriod(1800); tracker = analytics.newTracker("myid"); tracker.enableExceptionReporting(true); tracker.enableAdvertisingIdCollection(true); tracker.enableAutoActivityTracking(true);
..... Have added in application class
– Devrath
Nov 13 '18 at 7:39
It was working fine ... I am getting this error after adding the lineimplementation "com.google.firebase:firebase-core:16.0.1"
in cradle which is new firebase implementation
– Devrath
Nov 13 '18 at 7:40
|
show 1 more comment
Create a class GoogleAnalytics
– suresh madaparthi
Nov 13 '18 at 6:48
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.common.internal.zzbq" on path: DexPathList[[zip file "/data/app/com.bmw.bmwsales-uVdnAKZw9szHT_S3LTCH0A==/base.apk"],nativeLibraryDirectories=[/data/app/com.bmw.bmwsales-uVdnAKZw9szHT_S3LTCH0A==/lib/arm64, /system/lib64, /vendor/lib64, /product/lib64]] check this error
– suresh madaparthi
Nov 13 '18 at 6:49
where are you usingGoogleAnalytics analytics = GoogleAnalytics.getInstance(this);
? in Activity or Fragment?
– Ali Ahmed
Nov 13 '18 at 7:37
GoogleAnalytics analytics = GoogleAnalytics.getInstance(this); analytics.setLocalDispatchPeriod(1800); tracker = analytics.newTracker("myid"); tracker.enableExceptionReporting(true); tracker.enableAdvertisingIdCollection(true); tracker.enableAutoActivityTracking(true);
..... Have added in application class
– Devrath
Nov 13 '18 at 7:39
It was working fine ... I am getting this error after adding the lineimplementation "com.google.firebase:firebase-core:16.0.1"
in cradle which is new firebase implementation
– Devrath
Nov 13 '18 at 7:40
Create a class GoogleAnalytics
– suresh madaparthi
Nov 13 '18 at 6:48
Create a class GoogleAnalytics
– suresh madaparthi
Nov 13 '18 at 6:48
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.common.internal.zzbq" on path: DexPathList[[zip file "/data/app/com.bmw.bmwsales-uVdnAKZw9szHT_S3LTCH0A==/base.apk"],nativeLibraryDirectories=[/data/app/com.bmw.bmwsales-uVdnAKZw9szHT_S3LTCH0A==/lib/arm64, /system/lib64, /vendor/lib64, /product/lib64]] check this error
– suresh madaparthi
Nov 13 '18 at 6:49
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.common.internal.zzbq" on path: DexPathList[[zip file "/data/app/com.bmw.bmwsales-uVdnAKZw9szHT_S3LTCH0A==/base.apk"],nativeLibraryDirectories=[/data/app/com.bmw.bmwsales-uVdnAKZw9szHT_S3LTCH0A==/lib/arm64, /system/lib64, /vendor/lib64, /product/lib64]] check this error
– suresh madaparthi
Nov 13 '18 at 6:49
where are you using
GoogleAnalytics analytics = GoogleAnalytics.getInstance(this);
? in Activity or Fragment?– Ali Ahmed
Nov 13 '18 at 7:37
where are you using
GoogleAnalytics analytics = GoogleAnalytics.getInstance(this);
? in Activity or Fragment?– Ali Ahmed
Nov 13 '18 at 7:37
GoogleAnalytics analytics = GoogleAnalytics.getInstance(this); analytics.setLocalDispatchPeriod(1800); tracker = analytics.newTracker("myid"); tracker.enableExceptionReporting(true); tracker.enableAdvertisingIdCollection(true); tracker.enableAutoActivityTracking(true);
..... Have added in application class– Devrath
Nov 13 '18 at 7:39
GoogleAnalytics analytics = GoogleAnalytics.getInstance(this); analytics.setLocalDispatchPeriod(1800); tracker = analytics.newTracker("myid"); tracker.enableExceptionReporting(true); tracker.enableAdvertisingIdCollection(true); tracker.enableAutoActivityTracking(true);
..... Have added in application class– Devrath
Nov 13 '18 at 7:39
It was working fine ... I am getting this error after adding the line
implementation "com.google.firebase:firebase-core:16.0.1"
in cradle which is new firebase implementation– Devrath
Nov 13 '18 at 7:40
It was working fine ... I am getting this error after adding the line
implementation "com.google.firebase:firebase-core:16.0.1"
in cradle which is new firebase implementation– Devrath
Nov 13 '18 at 7:40
|
show 1 more comment
3 Answers
3
active
oldest
votes
Looks Like you're missing these.
Add the following dependency to your project-level build.gradle:
dependencies {
// ...
classpath 'com.google.gms:google-services:3.0.0'
}
Add the following dependency on Google Play Services to app/build.gradle:
dependencies {
// ...
compile 'com.google.android.gms:play-services-analytics:10.2.4'
}
For more info: Google Analytics in Android
Tried this, Still getting the same issue
– Devrath
Nov 13 '18 at 7:03
Have you followed Google Analytics documentation?
– Ali Ahmed
Nov 13 '18 at 7:04
like Addingpermissions in manifest
and addingtracking id
– Ali Ahmed
Nov 13 '18 at 7:05
Yes I have added. Its been there from begining
– Devrath
Nov 13 '18 at 7:30
add a comment |
Modify your build.gradle:
android {
compileSdkVersion 22
buildToolsVersion "23.0.0"
defaultConfig {
minSdkVersion 14 //lower than 14 doesn't support multidex
targetSdkVersion 22
// Enabling multidex support.
multiDexEnabled true
}
}
dependencies {
compile 'com.android.support:multidex:1.0.3'
}
add application singleton class if you dont have one
public class YouApplication extends Application {
@Override
protected void attachBaseContext(Context base) {
super.attachBaseContext(base);
MultiDex.install(this);
}
}
in manifest add application class as name
<application
android:name=".YouApplication "
>
Tried this ... No change yet. error stays
– Devrath
Nov 13 '18 at 7:31
add a comment |
I solved By:
dependencies {
implementation project(':library')
implementation project(':urlImageViewHelper')
//implementation 'com.google.android.gms:play-services:9.6.1'
implementation 'com.google.android.gms:play-services:12.0.1'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:appcompat-v7:28.0.0'
//implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:animated-vector-drawable:28.0.0'
implementation 'com.android.support:mediarouter-v7:28.0.0'
implementation 'com.google.code.gson:gson:2.2.4'
//implementation 'com.batch.android:batch-sdk:1.6.0'
implementation files('libs/bolts-android-1.2.0.jar')
implementation files('libs/glide-3.4.0.jar')
implementation files('libs/imagecoverflow-master.jar')
implementation files('libs/mint-4.0.7.jar')
implementation files('libs/Parse-1.9.2.jar')
implementation files('libs/universal-image-loader-1.9.3-with-sources.jar')
implementation files('libs/YouTubeAndroidPlayerApi.jar')
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.loopj.android:android-async-http:1.4.9'
implementation 'com.github.d-max:spots-dialog:0.4@aar'
implementation 'com.batch.android:batch-sdk:1.13+'
implementation "com.google.firebase:firebase-core:12.0.1"
}
It was version conflicts
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53275262%2fintegrating-firebase-causing-the-crash-in-android%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
Looks Like you're missing these.
Add the following dependency to your project-level build.gradle:
dependencies {
// ...
classpath 'com.google.gms:google-services:3.0.0'
}
Add the following dependency on Google Play Services to app/build.gradle:
dependencies {
// ...
compile 'com.google.android.gms:play-services-analytics:10.2.4'
}
For more info: Google Analytics in Android
Tried this, Still getting the same issue
– Devrath
Nov 13 '18 at 7:03
Have you followed Google Analytics documentation?
– Ali Ahmed
Nov 13 '18 at 7:04
like Addingpermissions in manifest
and addingtracking id
– Ali Ahmed
Nov 13 '18 at 7:05
Yes I have added. Its been there from begining
– Devrath
Nov 13 '18 at 7:30
add a comment |
Looks Like you're missing these.
Add the following dependency to your project-level build.gradle:
dependencies {
// ...
classpath 'com.google.gms:google-services:3.0.0'
}
Add the following dependency on Google Play Services to app/build.gradle:
dependencies {
// ...
compile 'com.google.android.gms:play-services-analytics:10.2.4'
}
For more info: Google Analytics in Android
Tried this, Still getting the same issue
– Devrath
Nov 13 '18 at 7:03
Have you followed Google Analytics documentation?
– Ali Ahmed
Nov 13 '18 at 7:04
like Addingpermissions in manifest
and addingtracking id
– Ali Ahmed
Nov 13 '18 at 7:05
Yes I have added. Its been there from begining
– Devrath
Nov 13 '18 at 7:30
add a comment |
Looks Like you're missing these.
Add the following dependency to your project-level build.gradle:
dependencies {
// ...
classpath 'com.google.gms:google-services:3.0.0'
}
Add the following dependency on Google Play Services to app/build.gradle:
dependencies {
// ...
compile 'com.google.android.gms:play-services-analytics:10.2.4'
}
For more info: Google Analytics in Android
Looks Like you're missing these.
Add the following dependency to your project-level build.gradle:
dependencies {
// ...
classpath 'com.google.gms:google-services:3.0.0'
}
Add the following dependency on Google Play Services to app/build.gradle:
dependencies {
// ...
compile 'com.google.android.gms:play-services-analytics:10.2.4'
}
For more info: Google Analytics in Android
answered Nov 13 '18 at 6:58
Ali AhmedAli Ahmed
1,2851314
1,2851314
Tried this, Still getting the same issue
– Devrath
Nov 13 '18 at 7:03
Have you followed Google Analytics documentation?
– Ali Ahmed
Nov 13 '18 at 7:04
like Addingpermissions in manifest
and addingtracking id
– Ali Ahmed
Nov 13 '18 at 7:05
Yes I have added. Its been there from begining
– Devrath
Nov 13 '18 at 7:30
add a comment |
Tried this, Still getting the same issue
– Devrath
Nov 13 '18 at 7:03
Have you followed Google Analytics documentation?
– Ali Ahmed
Nov 13 '18 at 7:04
like Addingpermissions in manifest
and addingtracking id
– Ali Ahmed
Nov 13 '18 at 7:05
Yes I have added. Its been there from begining
– Devrath
Nov 13 '18 at 7:30
Tried this, Still getting the same issue
– Devrath
Nov 13 '18 at 7:03
Tried this, Still getting the same issue
– Devrath
Nov 13 '18 at 7:03
Have you followed Google Analytics documentation?
– Ali Ahmed
Nov 13 '18 at 7:04
Have you followed Google Analytics documentation?
– Ali Ahmed
Nov 13 '18 at 7:04
like Adding
permissions in manifest
and adding tracking id
– Ali Ahmed
Nov 13 '18 at 7:05
like Adding
permissions in manifest
and adding tracking id
– Ali Ahmed
Nov 13 '18 at 7:05
Yes I have added. Its been there from begining
– Devrath
Nov 13 '18 at 7:30
Yes I have added. Its been there from begining
– Devrath
Nov 13 '18 at 7:30
add a comment |
Modify your build.gradle:
android {
compileSdkVersion 22
buildToolsVersion "23.0.0"
defaultConfig {
minSdkVersion 14 //lower than 14 doesn't support multidex
targetSdkVersion 22
// Enabling multidex support.
multiDexEnabled true
}
}
dependencies {
compile 'com.android.support:multidex:1.0.3'
}
add application singleton class if you dont have one
public class YouApplication extends Application {
@Override
protected void attachBaseContext(Context base) {
super.attachBaseContext(base);
MultiDex.install(this);
}
}
in manifest add application class as name
<application
android:name=".YouApplication "
>
Tried this ... No change yet. error stays
– Devrath
Nov 13 '18 at 7:31
add a comment |
Modify your build.gradle:
android {
compileSdkVersion 22
buildToolsVersion "23.0.0"
defaultConfig {
minSdkVersion 14 //lower than 14 doesn't support multidex
targetSdkVersion 22
// Enabling multidex support.
multiDexEnabled true
}
}
dependencies {
compile 'com.android.support:multidex:1.0.3'
}
add application singleton class if you dont have one
public class YouApplication extends Application {
@Override
protected void attachBaseContext(Context base) {
super.attachBaseContext(base);
MultiDex.install(this);
}
}
in manifest add application class as name
<application
android:name=".YouApplication "
>
Tried this ... No change yet. error stays
– Devrath
Nov 13 '18 at 7:31
add a comment |
Modify your build.gradle:
android {
compileSdkVersion 22
buildToolsVersion "23.0.0"
defaultConfig {
minSdkVersion 14 //lower than 14 doesn't support multidex
targetSdkVersion 22
// Enabling multidex support.
multiDexEnabled true
}
}
dependencies {
compile 'com.android.support:multidex:1.0.3'
}
add application singleton class if you dont have one
public class YouApplication extends Application {
@Override
protected void attachBaseContext(Context base) {
super.attachBaseContext(base);
MultiDex.install(this);
}
}
in manifest add application class as name
<application
android:name=".YouApplication "
>
Modify your build.gradle:
android {
compileSdkVersion 22
buildToolsVersion "23.0.0"
defaultConfig {
minSdkVersion 14 //lower than 14 doesn't support multidex
targetSdkVersion 22
// Enabling multidex support.
multiDexEnabled true
}
}
dependencies {
compile 'com.android.support:multidex:1.0.3'
}
add application singleton class if you dont have one
public class YouApplication extends Application {
@Override
protected void attachBaseContext(Context base) {
super.attachBaseContext(base);
MultiDex.install(this);
}
}
in manifest add application class as name
<application
android:name=".YouApplication "
>
answered Nov 13 '18 at 7:16
Akash kvAkash kv
36729
36729
Tried this ... No change yet. error stays
– Devrath
Nov 13 '18 at 7:31
add a comment |
Tried this ... No change yet. error stays
– Devrath
Nov 13 '18 at 7:31
Tried this ... No change yet. error stays
– Devrath
Nov 13 '18 at 7:31
Tried this ... No change yet. error stays
– Devrath
Nov 13 '18 at 7:31
add a comment |
I solved By:
dependencies {
implementation project(':library')
implementation project(':urlImageViewHelper')
//implementation 'com.google.android.gms:play-services:9.6.1'
implementation 'com.google.android.gms:play-services:12.0.1'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:appcompat-v7:28.0.0'
//implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:animated-vector-drawable:28.0.0'
implementation 'com.android.support:mediarouter-v7:28.0.0'
implementation 'com.google.code.gson:gson:2.2.4'
//implementation 'com.batch.android:batch-sdk:1.6.0'
implementation files('libs/bolts-android-1.2.0.jar')
implementation files('libs/glide-3.4.0.jar')
implementation files('libs/imagecoverflow-master.jar')
implementation files('libs/mint-4.0.7.jar')
implementation files('libs/Parse-1.9.2.jar')
implementation files('libs/universal-image-loader-1.9.3-with-sources.jar')
implementation files('libs/YouTubeAndroidPlayerApi.jar')
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.loopj.android:android-async-http:1.4.9'
implementation 'com.github.d-max:spots-dialog:0.4@aar'
implementation 'com.batch.android:batch-sdk:1.13+'
implementation "com.google.firebase:firebase-core:12.0.1"
}
It was version conflicts
add a comment |
I solved By:
dependencies {
implementation project(':library')
implementation project(':urlImageViewHelper')
//implementation 'com.google.android.gms:play-services:9.6.1'
implementation 'com.google.android.gms:play-services:12.0.1'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:appcompat-v7:28.0.0'
//implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:animated-vector-drawable:28.0.0'
implementation 'com.android.support:mediarouter-v7:28.0.0'
implementation 'com.google.code.gson:gson:2.2.4'
//implementation 'com.batch.android:batch-sdk:1.6.0'
implementation files('libs/bolts-android-1.2.0.jar')
implementation files('libs/glide-3.4.0.jar')
implementation files('libs/imagecoverflow-master.jar')
implementation files('libs/mint-4.0.7.jar')
implementation files('libs/Parse-1.9.2.jar')
implementation files('libs/universal-image-loader-1.9.3-with-sources.jar')
implementation files('libs/YouTubeAndroidPlayerApi.jar')
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.loopj.android:android-async-http:1.4.9'
implementation 'com.github.d-max:spots-dialog:0.4@aar'
implementation 'com.batch.android:batch-sdk:1.13+'
implementation "com.google.firebase:firebase-core:12.0.1"
}
It was version conflicts
add a comment |
I solved By:
dependencies {
implementation project(':library')
implementation project(':urlImageViewHelper')
//implementation 'com.google.android.gms:play-services:9.6.1'
implementation 'com.google.android.gms:play-services:12.0.1'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:appcompat-v7:28.0.0'
//implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:animated-vector-drawable:28.0.0'
implementation 'com.android.support:mediarouter-v7:28.0.0'
implementation 'com.google.code.gson:gson:2.2.4'
//implementation 'com.batch.android:batch-sdk:1.6.0'
implementation files('libs/bolts-android-1.2.0.jar')
implementation files('libs/glide-3.4.0.jar')
implementation files('libs/imagecoverflow-master.jar')
implementation files('libs/mint-4.0.7.jar')
implementation files('libs/Parse-1.9.2.jar')
implementation files('libs/universal-image-loader-1.9.3-with-sources.jar')
implementation files('libs/YouTubeAndroidPlayerApi.jar')
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.loopj.android:android-async-http:1.4.9'
implementation 'com.github.d-max:spots-dialog:0.4@aar'
implementation 'com.batch.android:batch-sdk:1.13+'
implementation "com.google.firebase:firebase-core:12.0.1"
}
It was version conflicts
I solved By:
dependencies {
implementation project(':library')
implementation project(':urlImageViewHelper')
//implementation 'com.google.android.gms:play-services:9.6.1'
implementation 'com.google.android.gms:play-services:12.0.1'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:appcompat-v7:28.0.0'
//implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:animated-vector-drawable:28.0.0'
implementation 'com.android.support:mediarouter-v7:28.0.0'
implementation 'com.google.code.gson:gson:2.2.4'
//implementation 'com.batch.android:batch-sdk:1.6.0'
implementation files('libs/bolts-android-1.2.0.jar')
implementation files('libs/glide-3.4.0.jar')
implementation files('libs/imagecoverflow-master.jar')
implementation files('libs/mint-4.0.7.jar')
implementation files('libs/Parse-1.9.2.jar')
implementation files('libs/universal-image-loader-1.9.3-with-sources.jar')
implementation files('libs/YouTubeAndroidPlayerApi.jar')
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.loopj.android:android-async-http:1.4.9'
implementation 'com.github.d-max:spots-dialog:0.4@aar'
implementation 'com.batch.android:batch-sdk:1.13+'
implementation "com.google.firebase:firebase-core:12.0.1"
}
It was version conflicts
answered Nov 14 '18 at 4:41
DevrathDevrath
22.3k38132186
22.3k38132186
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53275262%2fintegrating-firebase-causing-the-crash-in-android%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Create a class GoogleAnalytics
– suresh madaparthi
Nov 13 '18 at 6:48
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.common.internal.zzbq" on path: DexPathList[[zip file "/data/app/com.bmw.bmwsales-uVdnAKZw9szHT_S3LTCH0A==/base.apk"],nativeLibraryDirectories=[/data/app/com.bmw.bmwsales-uVdnAKZw9szHT_S3LTCH0A==/lib/arm64, /system/lib64, /vendor/lib64, /product/lib64]] check this error
– suresh madaparthi
Nov 13 '18 at 6:49
where are you using
GoogleAnalytics analytics = GoogleAnalytics.getInstance(this);
? in Activity or Fragment?– Ali Ahmed
Nov 13 '18 at 7:37
GoogleAnalytics analytics = GoogleAnalytics.getInstance(this); analytics.setLocalDispatchPeriod(1800); tracker = analytics.newTracker("myid"); tracker.enableExceptionReporting(true); tracker.enableAdvertisingIdCollection(true); tracker.enableAutoActivityTracking(true);
..... Have added in application class– Devrath
Nov 13 '18 at 7:39
It was working fine ... I am getting this error after adding the line
implementation "com.google.firebase:firebase-core:16.0.1"
in cradle which is new firebase implementation– Devrath
Nov 13 '18 at 7:40