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.

Breaks Compilation in Nativescript 3.3.0 when combined with Nativescript-google-maps-sdk #92

@AnthonySmith01

Description

@AnthonySmith01

Hi All

Thanks for the plugin, I've been using it for a while now.

I've noticed that when I create a fresh Android project with nativescript-google-maps-sdk and nativescript-geolocation it produces the following error:

Gradle build...
         + applying user-defined configuration from C:\Users\New\Desktop\geolocation\app\App_Resources\Android\app.gradle
         + add include.gradle from C:\Users\New\Desktop\geolocation\node_modules\nativescript-geolocation\platforms\android\include.gradle
         + add include.gradle from C:\Users\New\Desktop\geolocation\node_modules\nativescript-google-maps-sdk\platforms\android\include.gradle
         + creating include.gradle for plugin C:\Users\New\Desktop\geolocation\node_modules\tns-core-modules-widgets
         + applying plugin configuration from C:\Users\New\Desktop\geolocation\platforms\android\build\configurations\nativescript-geolocation\include.gradle
         + applying plugin configuration from C:\Users\New\Desktop\geolocation\platforms\android\build\configurations\nativescript-google-maps-sdk\include.gradle
         + applying plugin configuration from C:\Users\New\Desktop\geolocation\platforms\android\build\configurations\tns-core-modules-widgets\include.gradle
         + adding nativescript runtime package dependency: nativescript-optimized
         + adding aar plugin dependency: C:\Users\New\Desktop\geolocation\node_modules\tns-core-modules-widgets\platforms\android\widgets-release.aar
Running full build
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':transformClassesWithDexForF0F1F2Debug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/zzbzv;

Interestingly, both plugins work by themselves in projects but when added to a new project it breaks. Any ideas?

Thanks for your help

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