bazelbuild / bazelbuild/rules_android_ndk

Proposal: use a path relative to `ANDROID_HOME` like in Android Gradle Plugins

Open
#64 0 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue
Dominant language
Starlark
Stars
43
Forks
32
PR merge metrics
No merged PRs in 30d

Description

I'm building an app with Bazel and `flutter` (which sadly is not integrated at all) and was puzzled when I realized `ANDROID_NDK_HOME` is completely ignored by the latest version of the Android Gradle plugin.

It looks like the project has moved from using `ANDROID_NDK_HOME` to assuming relative paths within `ANDROID_HOME`, like so: https://github.com/android/ndk-samples/wiki/Configure-NDK-Path#introduction

Adding search paths like `$ANDROID_HOME/ndk/$version` would also let us specify a version in the `repository_rule` which would fail if the constraint is not satisfied on the host's machine.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.