Error: In order to generate a V8 snapshot you must have the "android" platform installed - to do so please run "tns platform add android".
mapo80 opened this issue · 1 comments
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: 7.0.8
-
Cross-platform modules: 7.0.0
-
Android Runtime: 7.0.0
-
iOS Runtime: 7.0.0
-
Node.js: 12.16.1
-
Please, attach your package.json and webpack.config.js as these configurations are usually critical for investigating issues with webpack
Describe the bug
I use @nativescript/webpack version 3.0.0 and NS 7.
With latest version of NS there is new configuration file "nativescript.config.ts", but getAndroidRuntimeVersion reads info from package.json
const getAndroidRuntimeVersion = (projectDir) => {
try {
const projectPackageJSON = getPackageJson(projectDir);
const version = projectPackageJSON["nativescript"]["tns-android"]["version"];
return version && toReleaseVersion(version);
} catch (e) {
return null;
}
}
To Reproduce
Expected behavior
Sample project
Additional context
Here there are more details:
NativeScript/NativeScript#8875