Skip to content

[NS7] Initial project fails to build production release #5393

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

Open
mohammadrafigh opened this issue Sep 21, 2020 · 3 comments
Open

[NS7] Initial project fails to build production release #5393

mohammadrafigh opened this issue Sep 21, 2020 · 3 comments
Labels

Comments

@mohammadrafigh
Copy link

Environment

  • CLI: 7.0.8
  • Android Runtime: 7.0.0

Describe the bug
running ns build android --release --env.snapshot --env.compileSnapshot --env.uglify --keyStorePath <KEYSTORE> --keyStorePassword <PASSWORD> --keyStoreAlias <ALIAS> --keyStoreAliasPassword <PASSWORD> --aab

throws

/test-project/node_modules/webpack-cli/bin/cli.js:93
				throw err;
				^

Error: In order to generate a V8 snapshot you must have the "android" platform installed - to do so please run "tns platform add android".
    at NativeScriptSnapshotPlugin.ProjectSnapshotGenerator.validateAndroidRuntimeVersion (/test-project/node_modules/@nativescript/webpack/snapshot/android/project-snapshot-generator.js:124:15)

Adding this to package.json resolves the error but I think it's not intended to be like that in NS7:

  "nativescript": {
    "id": "io.thisapp.thisappmap",
    "tns-android": {
      "version": "7.0.0"
    }
  },

To Reproduce

  • Initialize a new project
  • Run the command mentioned above
@sohetma
Copy link

sohetma commented Sep 22, 2020

I get the same issue with :
"tns-ios": { "version": "6.5.2" },

@rigor789 rigor789 transferred this issue from NativeScript/NativeScript Sep 22, 2020
@rigor789 rigor789 added the bug label Sep 22, 2020
@farfromrefug
Copy link
Contributor

it think it is the same issue as this one #5391

@mohammadrafigh
Copy link
Author

@farfromrefug I don't think it's the same issue.

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

No branches or pull requests

4 participants