Open
Description
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