Skip to content

Commit 820b255

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

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

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

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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 <version> as we update the target NDK from r17 to r25. As a
10+
consequence the minimum supported API level will increase from 15 (Jelly Bean)
11+
to 19 (KitKat).
12+
13+
In NDK r23 Android switched to using LLVMs `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 targets NDK r22 or older it will need to be updated to target
21+
r23 or newer.
22+
23+
Going forward the Android platform will target the most recent LTS NDK, allowing
24+
Rust developers to access platform features sooner.
25+

0 commit comments

Comments
 (0)