You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Solving version conflicts with project.ext no longer working in 3.3 #878
In {NS} 3.2 I did something like this in my app.gradle file to have nativescript-plugin-firebase work well together with nativescript-cardview, nativescript-geolocation and nativescript-google-maps-sdk plugins:
FAILURE: Build failed with an exception.
* Where:
Script '~/test-ns-33/platforms/android/build/configurations/nativescript-geolocation/include.gradle' line: 19
* What went wrong:
A problem occurred evaluating script.
> Cannot get property 'googlePlayServicesVersion' on extra properties extension as it does not exist
Hey @hettiger, the user configurations which provides the global property for other plugins to interpolate from is applied after all the other configurations. This mechanism allows the user configuration to take precedence and override any other gradle rules the user would decide.
We'll let you know when the problem has been addressed.
I can imagine it breaks a lot of apps that people try to update and it's really hard for non native devs to figure out what's going on thought. Maybe there should be a notice on https://docs.nativescript.org/releases/breaking-changes until this has been fixed?
@hettiger I've not tried the changes with Sidekick, I'll test further with Sidekick before pushing the patch release to ensure there are no incompatibilities.
@Pip3r4o awesome, I can now confirm that it is working with or without the additions from Sidekick. Thank you, looking forward to be installing the patch 👍
Although I received a new error when using android@rc, any ideas?
Error: Failed to crunch file C:\project\platforms\android\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\11.6.2\res\drawable-hdpi-v4\common_google_signin_btn_icon_dark_normal_background.9.png into C:\project\platforms\android\build\intermediates\res\merged\F0F1F2F3\debug\drawable-hdpi-v4\common_google_signin_btn_icon_dark_normal_background.9.png
Activity
NickIliev commentedon Nov 9, 2017
@hettiger confirming this as a bug with the latest Android runtime (3.3.0).
The issue is not reproducible with tns-android 3.2.0
Steps to reproduce:
tns create issue5043 --tscgooglePlayServicesVersionpetekanev commentedon Nov 9, 2017
Hey @hettiger, the user configurations which provides the
globalproperty for other plugins to interpolate from is applied after all the other configurations. This mechanism allows the user configuration to take precedence and override any other gradle rules the user would decide.We'll let you know when the problem has been addressed.
hettiger commentedon Nov 9, 2017
Thank you for the update @Pip3r4o
I can imagine it breaks a lot of apps that people try to update and it's really hard for non native devs to figure out what's going on thought. Maybe there should be a notice on https://docs.nativescript.org/releases/breaking-changes until this has been fixed?
petekanev commentedon Nov 9, 2017
@hettiger the issue has been addressed.
Please give the fix a try by executing
tns platform add android@rcwhich should fetch the pre-release of today's hotfix3.3.1Expect a patch release (3.3.1) of the android runtime later today
hettiger commentedon Nov 9, 2017
@Pip3r4o Thank you for the hotfix. I've successfully built with 3.3.1 removing the following part from my
app.gradlefile:NativeScript Sidekick adds these lines automatically to my app.gradle file.
Conclusion
petekanev commentedon Nov 9, 2017
@hettiger I've not tried the changes with Sidekick, I'll test further with Sidekick before pushing the patch release to ensure there are no incompatibilities.
hettiger commentedon Nov 9, 2017
@Pip3r4o That's great news, thank you. If you want me to test it again let me know once another RC is available.
petekanev commentedon Nov 9, 2017
@hettiger we reverted the
app.gradleapplication logic altogether to match the pre-3.3.0 behavior. Please give theandroid@rcanother try. Thank you!hettiger commentedon Nov 9, 2017
@Pip3r4o awesome, I can now confirm that it is working with or without the additions from Sidekick. Thank you, looking forward to be installing the patch 👍
petekanev commentedon Nov 13, 2017
Problem addressed in the 3.3.1 release of NativeScript.
AnthonySmith01 commentedon Nov 28, 2017
Hi @Pip3r4o , thanks for the great work on this.
Although I received a new error when using android@rc, any ideas?
Error: Failed to crunch file C:\project\platforms\android\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\11.6.2\res\drawable-hdpi-v4\common_google_signin_btn_icon_dark_normal_background.9.png into C:\project\platforms\android\build\intermediates\res\merged\F0F1F2F3\debug\drawable-hdpi-v4\common_google_signin_btn_icon_dark_normal_background.9.pngAnthonySmith01 commentedon Nov 28, 2017
Ah found my own solution just then, looks like the window path was too long. Here is a link for anyone else: #803