Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/internal/zzbck #187

Closed

Description

@abhayastudios

Make sure to check the existing issues in this repository

Relates to issues #156 & #173.

If the demo apps cannot help and there is no issue for your problem, tell us about it

Running this plugin in my app on Android, I get an error:

java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/internal/zzbck

If I add nativescript-plugin-firebase to the demo-angular project of this plugin, it will also result in the same error when trying to use the geolocation plugin.

The issues mentioned above suggest to either pin Google Play Services to version 15.0.1 or use latest (+) as below, with the latter also recommended in the nativescript-plugin-firebase docs:

project.ext {
    googlePlayServicesVersion = "15.0.1"
}

OR

project.ext {
    googlePlayServicesVersion = "+"
}

This will still result in the same NoClassDefFoundError.

Which platform(s) does your issue occur on?

Android both with emulator and real device

Please, provide the following version numbers that your issue occurs with:

$ tns info
✔ Getting NativeScript components versions information...
✔ Component nativescript has 5.1.1 version and is up to date.
✔ Component tns-core-modules has 5.1.2 version and is up to date.
✔ Component tns-android has 5.1.0 version and is up to date.
✔ Component tns-ios has 5.1.1 version and is up to date.

Relevant plugins:

"nativescript-geolocation": "^4.3.1",
"nativescript-plugin-firebase": "^7.5.0",

Activity

  1. MaxiSonntag commented on Jan 29, 2019

    @MaxiSonntag

    Same with current version 4.4.0

  2. tbozhikov commented on Jan 29, 2019

    @tbozhikov
    Contributor

    Hi @abhayastudios, @MaxiSonntag. Here's how I managed to use both plugins (geolocation and firebase) together:

    1. Use demo-angular project from the geolocation repo, add nativescript-plugin-firebase plugin v7.7.0
    2. Create a file before-plugins.gradle in /demo-angular/App_Resources/Android
    3. Add content:
    project.ext {
        googlePlayServicesVersion = "+"
    }
    

    This procedure is also described here.
    Hope this helps!

  3. JMente commented on Feb 10, 2019

    @JMente

    @tbozhikov works for me, thank you

  4. abhayastudios commented on May 6, 2019

    @abhayastudios
    Author

    @tbozhikov sorry for the delay but indeed this solves my issue! thanks a lot :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions