diff --git a/src/lib.rs b/src/lib.rs
index cf3a732..83f6bdf 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -116,6 +116,9 @@ mod f2s;
 mod f2s_intrinsics;
 mod pretty;
 
+#[cfg(android_dylib)]
+extern crate std;
+
 pub use crate::buffer::{Buffer, Float};
 
 /// Unsafe functions that mirror the API of the C implementation of Ryū.
