ANDROID_NDK_HOME is not respected on build --aab --env.compileSnapshot on Windows #5089
Labels
bug
no-changelog
The issue is present only in `next` versions and was not included in official version.
Environment
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 errorAndroid 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
The text was updated successfully, but these errors were encountered: