--- a/src/codelldb/bin/main.rs
+++ b/src/codelldb/bin/main.rs
@@ -15,7 +15,7 @@ fn main() -> Result<(), Error> {
     #[cfg(windows)]
     const DYLIB_SUBDIR: &str = "bin";
 
-    #[cfg(target_os = "linux")]
+    #[cfg(any(target_os = "linux", target_os = "android"))]
     const DYLIB_EXTENSION: &str = "so";
     #[cfg(target_os = "macos")]
     const DYLIB_EXTENSION: &str = "dylib";
