Skip to content

ANDROID_NDK_HOME is not respected on build --aab --env.compileSnapshot on Windows #5089

Closed
@endarova

Description

@endarova

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

  1. tns create my_app --js
  2. 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

Metadata

Metadata

Assignees

Labels

bugno-changelogThe issue is present only in `next` versions and was not included in official version.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions