Closed
Description
Environment
- CLI: nativescript@rc
Describe the bug
On windows when only ANDROID_NDK_HOME is set and executing: tns build android --release --key-store-path .... --key-store-password ... --key-store-alias ... --key-store-alias-password ... --env.snapshot --aab --env.compileSnapshot
execution fails with error Android NDK v20.0.5594570 is not installed.
To Reproduce
tns create my_app --js
tns build android --release --key-store-path .... --key-store-password ... --key-store-alias ... --key-store-alias-password ... --env.snapshot --aab --env.compileSnapshot
Result:
ERROR in NativeScriptSnapshot. Snapshot generation failed! Android NDK v20.0.5594570 is not installed. Install it from Android Studio or download it and set ANDROID_NDK_HOME or add it to your PATH. You can find installation instructions in this article: https://developer.android.com/studio/projects/install-ndk#specific-version Executing webpack failed with exit code 2.
Expected behavior
The build should succeed