question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Breaks compilation in Nativescript 3.3.0

See original GitHub issue

Hi

Great plugin, I really like it. 😃

I’ve noticed that the Google Maps Sdk plugin seems to break project compilation (at least to Android) after the Nativescript 3.3.0 update.

Here is the log I receive on a fresh project that worked prior to adding the plugin: `* What went wrong: Execution failed for task ‘:transformClassesWithDexForF0F1F2F3F4F5Debug’.

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;

Unable to apply changes on device: emulator-5554. Error is: Command ./gradlew failed with exit code 1. `

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
dapriettcommented, Nov 11, 2017

hello all, sorry for the delay - did a search, and looks like it’s related to this: https://github.com/NativeScript/android-runtime/issues/878

This broke the ability to set global properties for this and alot of other plugins. Looks like it should be fixed in 3.3.1. So you can either try their release candidate (ns platform add android@rc), or go back to 3.2.0. Let me know if the rc version works.

1reaction
TheOnlyMattcommented, Nov 8, 2017

Hello ! I had the same error, this happens when there are different google play services version. Get the version from the android app.gradle file

project.ext {
        googlePlayServicesVersion = "**11.2.+**"
    }

Then set it to the node_modules/nativescript-google-maps-sdk/platforms/android/include.gradle

dependencies {
	def googlePlayServicesVersion = project.hasProperty('googlePlayServicesVersion') ? project.googlePlayServicesVersion : '**11.2.+**'
	compile "com.google.android.gms:play-services-maps:$googlePlayServicesVersion"
}

In my case I had to replace the “+” version with the “11.2.+”

Hope it can save you from banging your head against the walls as I did 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Breaks Compilation in Nativescript 3.3.0 when combined with ...
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...
Read more >
Nativescript Angular iOS build failing - Stack Overflow
TLDR; you have a module in your package.json that isn't compatible with the angular version you're building. I'm running into the same error ......
Read more >
Firebase Apple SDK Release Notes - Google
Index -related compile time errors when building with older Swift versions (#10171). ... Breaking change: import Firebase will no longer implicitly import ...
Read more >
Gatsby Changelog | 5.3.0
We are proposing Breaking Changes for the next major version of Gatsby to our GraphQL API. The goal of this change is increasing...
Read more >
NativeScript Webpack 0.9.0—What Changed and How to ...
NOTE: The NativeScriptAngularCompilerPlugin uses just-in-time compilation by default, and you need to use a separate flag to enable ahead-of- ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found