Skip to content
This repository was archived by the owner on Mar 10, 2021. It is now read-only.

App crashes with error in logcat: java.lang.NoSuchMethodError: No virtual method zzBM()Lcom/google/android/gms/dynamic/LifecycleDelegate in class Lcom/google/android/gms/maps/MapView$zzb; or its super classes #13

@matthiasprieth

Description

@matthiasprieth

So 0.13.0 was not working on android at all for me even with the same play-services versions (got the error from the title). Then i upgraded to 0.15.0 and got a new error.

nknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.airbnb.android.react.maps.SizeReportingShadowNode

05-09 14:22:33.382  4346  4346 D AndroidRuntime: Shutting down VM

05-09 14:22:33.382  4346  4346 E AndroidRuntime: FATAL EXCEPTION: main

05-09 14:22:33.382  4346  4346 E AndroidRuntime: Process: com.rhinoapp, PID: 4346

05-09 14:22:33.382  4346  4346 E AndroidRuntime: java.lang.AbstractMethodError: abstract method "void com.google.android.gms.dynamic.zza.zza(com.google.android.gms.dynamic.zze)"

05-09 14:22:33.382  4346  4346 E AndroidRuntime: 	at com.google.android.gms.dynamic.zza.zza(Unknown Source)

After googling I found this: react-native-maps/react-native-maps#669
Now it's working and my build.gradle looks like this now:

    compile(project(':react-native-maps')){
        exclude group: 'com.google.android.gms', module: 'play-services-base'
        exclude group: 'com.google.android.gms', module: 'play-services-maps'
    }
    compile "com.google.android.gms:play-services-base:+"
    compile 'com.google.android.gms:play-services-location:+'
    compile 'com.google.android.gms:play-services-maps:+'

If you guys are updating the ignite-maps plugin to 0.15.0 don't forget that there is a /lib subfolder in the new version now, so settings.gradle needs to be like this now:

include ':react-native-maps'
project(':react-native-maps').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-maps/lib/android')

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions