Skip to content
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

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

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

Comments

@mohammadrafigh
Copy link

@mohammadrafigh mohammadrafigh commented Sep 21, 2020

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 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
@rigor789 rigor789 added this to To do in Post 7.0 Fixes and Features via automation Sep 22, 2020
@farfromrefug
Copy link
Contributor

@farfromrefug farfromrefug commented Sep 24, 2020

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

@mohammadrafigh
Copy link
Author

@mohammadrafigh mohammadrafigh commented Oct 1, 2020

@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
Projects
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.