Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash After Installing -> java.lang.Class<com.google.android.gms.maps.model.LatLng>: java.lang.NoClassDefFoundError #3

Open
alexjuniodev opened this issue May 22, 2018 · 1 comment

Comments

@alexjuniodev
Copy link

I got the error below when I installed this package. It's related with my other packages because, when I remove others which uses location it works.

My Build Gradle:

buildscript {
repositories {
google()
jcenter()
}

dependencies {
    classpath 'com.android.tools.build:gradle:3.0.1'
    classpath 'com.google.gms:google-services:3.1.2'
    classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.1.2-4'
}

}

allprojects {
repositories {
google()
jcenter()
}
}

rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.android.support'
&& !details.requested.name.contains('multidex') ) {
details.useVersion '27.1.0'
}
}
}
}

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

ERROR

===================================================
I/FlutterActivityDelegate( 3165): onResume setting current activity to this
I/zygote ( 3165): at void android.os.Looper.loop() (Looper.java:164)
I/zygote ( 3165): at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6656)
I/zygote ( 3165): at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2)
I/zygote ( 3165): at void com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run() (RuntimeInit.java:438)
I/zygote ( 3165): at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:823)
I/zygote ( 3165): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.internal.zzbgl" on path: DexPathList[[zip file "/data/app/com.develover.flutterchat-10m0oM42qNr3W89RMFisDg==/base.apk"],nativeLibraryDirectories=[/data/app/com.develover.flutterchat-10m0oM42qNr3W89RMFisDg==/lib/x86, /data/app/com.develover.flutterchat-10m0oM42qNr3W89RMFisDg==/base.apk!/lib/x86, /system/lib]]
I/zygote ( 3165): at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:125)
I/zygote ( 3165): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379)
I/zygote ( 3165): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
I/zygote ( 3165): at java.lang.Object java.lang.Class.newInstance() (Class.java:-2)
I/zygote ( 3165): at android.app.Activity android.app.AppComponentFactory.instantiateActivity(java.lang.ClassLoader, java.lang.String, android.content.Intent) (AppComponentFactory.java:61)
I/zygote ( 3165): at android.app.Activity android.app.Instrumentation.newActivity(java.lang.ClassLoader, java.lang.String, android.content.Intent) (Instrumentation.java:1210)
I/zygote ( 3165): at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord) (ActivityThread.java:2808)
I/zygote ( 3165): at android.app.Activity android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.app.servertransaction.PendingTransactionActions) (ActivityThread.java:3027)
I/zygote ( 3165): at void android.app.servertransaction.LaunchActivityItem.execute(android.app.ClientTransactionHandler, android.os.IBinder, android.app.servertransaction.PendingTransactionActions) (LaunchActivityItem.java:78)
I/zygote ( 3165): at void android.app.servertransaction.TransactionExecutor.executeCallbacks(android.app.servertransaction.ClientTransaction) (TransactionExecutor.java:101)
I/zygote ( 3165): at void android.app.servertransaction.TransactionExecutor.execute(android.app.servertransaction.ClientTransaction) (TransactionExecutor.java:73)
I/zygote ( 3165): at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1786)
I/zygote ( 3165): at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:106)
I/zygote ( 3165): at void android.os.Looper.loop() (Looper.java:164)
I/zygote ( 3165): at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6656)
I/zygote ( 3165): at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2)
I/zygote ( 3165): at void com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run() (RuntimeInit.java:438)
I/zygote ( 3165): at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:823)
I/zygote ( 3165):
I/zygote ( 3165): Rejecting re-init on previously-failed class java.lang.Class<com.google.android.gms.maps.model.MarkerOptions>: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/internal/zzbgl;
I/zygote ( 3165): at java.lang.Object java.lang.Class.newInstance() (Class.java:-2)
I/zygote ( 3165): at android.app.Activity android.app.AppComponentFactory.instantiateActivity(java.lang.ClassLoader, java.lang.String, android.content.Intent) (AppComponentFactory.java:61)
I/zygote ( 3165): at android.app.Activity android.app.Instrumentation.newActivity(java.lang.ClassLoader, java.lang.String, android.content.Intent) (Instrumentation.java:1210)
I/zygote ( 3165): at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord) (ActivityThread.java:2808)
I/zygote ( 3165): at android.app.Activity android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.app.servertransaction.PendingTransactionActions) (ActivityThread.java:3027)
I/zygote ( 3165): at void android.app.servertransaction.LaunchActivityItem.execute(android.app.ClientTransactionHandler, android.os.IBinder, android.app.servertransaction.PendingTransactionActions) (LaunchActivityItem.java:78)
I/zygote ( 3165): at void android.app.servertransaction.TransactionExecutor.executeCallbacks(android.app.servertransaction.ClientTransaction) (TransactionExecutor.java:101)
I/zygote ( 3165): at void android.app.servertransaction.TransactionExecutor.execute(android.app.servertransaction.ClientTransaction) (TransactionExecutor.java:73)
I/zygote ( 3165): at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1786)
I/zygote ( 3165): at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:106)
I/zygote ( 3165): at void android.os.Looper.loop() (Looper.java:164)
I/zygote ( 3165): at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6656)
I/zygote ( 3165): at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2)
I/zygote ( 3165): at void com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run() (RuntimeInit.java:438)
I/zygote ( 3165): at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:823)
I/zygote ( 3165): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.internal.zzbgl" on path: DexPathList[[zip file "/data/app/com.develover.flutterchat-10m0oM42qNr3W89RMFisDg==/base.apk"],nativeLibraryDirectories=[/data/app/com.develover.flutterchat-10m0oM42qNr3W89RMFisDg==/lib/x86, /data/app/com.develover.flutterchat-10m0oM42qNr3W89RMFisDg==/base.apk!/lib/x86, /system/lib]]
I/zygote ( 3165): at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:125)
I/zygote ( 3165): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379)
I/zygote ( 3165): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
I/zygote ( 3165): at java.lang.Object java.lang.Class.newInstance() (Class.java:-2)
I/zygote ( 3165): at android.app.Activity android.app.AppComponentFactory.instantiateActivity(java.lang.ClassLoader, java.lang.String, android.content.Intent) (AppComponentFactory.java:61)
I/zygote ( 3165): at android.app.Activity android.app.Instrumentation.newActivity(java.lang.ClassLoader, java.lang.String, android.content.Intent) (Instrumentation.java:1210)
I/zygote ( 3165): at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord) (ActivityThread.java:2808)
I/zygote ( 3165): at android.app.Activity android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.app.servertransaction.PendingTransactionActions) (ActivityThread.java:3027)
I/zygote ( 3165): at void android.app.servertransaction.LaunchActivityItem.execute(android.app.ClientTransactionHandler, android.os.IBinder, android.app.servertransaction.PendingTransactionActions) (LaunchActivityItem.java:78)
I/zygote ( 3165): at void android.app.servertransaction.TransactionExecutor.executeCallbacks(android.app.servertransaction.ClientTransaction) (TransactionExecutor.java:101)
I/zygote ( 3165): at void android.app.servertransaction.TransactionExecutor.execute(android.app.servertransaction.ClientTransaction) (TransactionExecutor.java:73)
I/zygote ( 3165): at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1786)
I/zygote ( 3165): at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:106)
I/zygote ( 3165): at void android.os.Looper.loop() (Looper.java:164)
I/zygote ( 3165): at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6656)
I/zygote ( 3165): at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2)
I/zygote ( 3165): at void com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run() (RuntimeInit.java:438)
I/zygote ( 3165): at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:823)

@alegsm
Copy link
Contributor

alegsm commented May 22, 2018

Which other location dependencies are you using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants