Skip to content

8.2 release breaks 8.1.x builds due to a bug in the Nativescript CLI #1706

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bytelabsco opened this issue Mar 8, 2022 · 2 comments
Closed

Comments

@bytelabsco
Copy link

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 8.1.5
  • Android Runtime: 8.1.1

Describe the bug
In current (8.1.x) versions of the nativescript CLI, a bug exists where the Gradle version is never actually pulled from the current platform (in this case @nativescript/android). You can see this in the 8.1.5 tagged version of the nativescript-cli

The projectRuntimeVersion is looked up, but nothing is ever done with it to set runtimeGradleVersions, so it falls through to the next if block to look up the latest runtime. It will then run the command npm view @nativescript/android@<whatever version> gradle --json to get the appropriate gradle info. You can see that this behavior has been fixed in the master version of nativescript-cli, but has not been released.

However, in 8.2.0 of @nativescript/android, the gradle property was replaced with version-info breaking any builds that are using the current version of the nativescript cli.

To Reproduce
Create a project using Nativescript CLI 8.1.5. Use @nativescript/android 8.1.x. Try to build it.

Expected behavior
In the interim, the gradle propery should still exist as a fallback for 8.1.x CLI users

@a92c
Copy link

a92c commented Mar 9, 2022

news? We need fast feedback. Thank you

@rigor789
Copy link
Member

rigor789 commented Mar 9, 2022

Update your CLI - should be backwards compatible and fix the issue.

See thread here: NativeScript/NativeScript#9814 (comment)

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

No branches or pull requests

3 participants