Skip to content

Commit 9530585

Browse files
committed
Announce an impending update the Android NDK target
1 parent 60bfdfa commit 9530585

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
layout: post
3+
title: "Updating the Android NDK in Rust <version>"
4+
author: Android Platform Team
5+
description: "Modernizing Android support in Rust"
6+
---
7+
8+
We are pleased to announce that Android platform support in Rust will be
9+
modernized in Rust 1.66 as we update the target NDK from r17 to r25. As a
10+
consequence the minimum supported API level will increase from 15 (Ice Cream
11+
Sandwich) to 19 (KitKat).
12+
13+
In NDK r23 Android switched to using LLVM's `libunwind` for all architectures.
14+
This meant that
15+
1. If a project were to target NDK r23 or newer with previous versions of Rust
16+
[a workaround](https://github.com/rust-lang/rust/pull/85806#issuecomment-1096266946)
17+
would be required to redirect attempts to link against `libgcc` to instead
18+
link against `libunwind`. Following this update this workaround will no
19+
longer be necessary.
20+
2. If a project uses NDK r22 or older it will need to be updated to use [r23 or
21+
newer](https://developer.android.com/ndk/downloads). Information about the
22+
layout of the NDK's toolchain can be found
23+
[here](https://developer.android.com/ndk/guides/other_build_systems).
24+
25+
Going forward the Android platform will target the most recent LTS NDK, allowing
26+
Rust developers to access platform features sooner. These updates should occur
27+
yearly and will be announced in release notes.
28+

0 commit comments

Comments
 (0)