Skip to content

Commit 41b036b

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

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

Diff for: posts/2022-12-20-android-ndk-update.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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.
22+
23+
Going forward the Android platform will target the most recent LTS NDK, allowing
24+
Rust developers to access platform features sooner. These updates should occur
25+
yearly and will be announced in release notes.
26+

0 commit comments

Comments
 (0)