Skip to content

Commit 88d8106

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

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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 would be required to redirect attempts to link against `libgcc`
17+
to instead link against `libunwind`. Following this update this workaround
18+
will no longer be necessary.
19+
2. If a project targets an NDK between r17 and r23 it will need to be updated to
20+
target r23 or newer.
21+
22+
Going forward the Android platform will target the most recent LTS NDK, allowing
23+
Rust developers to access platform featuers sooner.
24+

0 commit comments

Comments
 (0)