Skip to content

Commit debbb21

Browse files
committed
Fix android_abi.gradle to use ANDROID_NDK_HOME instead of NDK_ROOT environment variable.
1 parent 77d64e7 commit debbb21

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

android_build_files/android_abis.gradle

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
// Set the list of Android ABIs depending on whether we the NDK_ROOT environment
16-
// variable contains the text 'r16b' in it. This will generally only occur
17-
// during C++ packaging, which uses /tmp/android-ndk-r16b as the NDK directory.
18-
// When using this NDK version, add a few additional ABIs that are only
19-
// supported in r16b and earlier.
15+
// Set the list of Android ABIs depending on whether we the ANDROID_NDK_HOME
16+
// environment variable contains the text 'r16b' in it. This will generally only
17+
// occur during C++ packaging, which uses /tmp/android-ndk-r16b as the NDK
18+
// directory. When using this NDK version, add a few additional ABIs that are
19+
// only supported in r16b and earlier.
2020

2121
android {
2222
defaultConfig {
2323
ndk {
2424
// Default list of ABIs available in up-to-date NDK.
2525
abiFilters "x86", "armeabi-v7a", "arm64-v8a", "x86_64"
2626

27-
if (System.getenv('NDK_ROOT').contains('r16b') ||
28-
System.getenv('NDK_ROOT').contains('r11c')) {
27+
if (System.getenv("ANDROID_NDK_HOME").contains("r16b") ||
28+
System.getenv("ANDROID_NDK_HOME").contains("r11c")) {
2929
// Deprecated ABIs are added to the list when building using older NDKs only.
3030
// Rather than an exhaustive list, we only support r11c and r16b.
3131
abiFilters.add("armeabi")

0 commit comments

Comments
 (0)