Skip to content
This repository has been 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

Open
matthiasprieth opened this issue May 9, 2017 · 3 comments

Comments

@matthiasprieth
Copy link

matthiasprieth commented May 9, 2017

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')
@matthiasprieth matthiasprieth changed the title 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 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 May 9, 2017
@jamonholmgren
Copy link
Member

@matthiasprieth Thanks! Would you want to update the plugin.js script to properly implement this?

@matthiasprieth
Copy link
Author

Maybe I can have a look on weekend :)

@jamonholmgren
Copy link
Member

Sweet @matthiasprieth , let me know what you come up with!

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

No branches or pull requests

2 participants