diff --git a/nearby/apex/Android.bp b/nearby/apex/Android.bp
index 7df15b8d5f74eb1686c6bce752744bfaebb4b166..e5769b1bd6f4a5a0b61333c020c4be238f9d3f34 100644
--- a/nearby/apex/Android.bp
+++ b/nearby/apex/Android.bp
@@ -54,4 +54,18 @@ bootclasspath_fragment {
     name: "com.android.nearby-bootclasspath-fragment",
     contents: ["framework-nearby"],
     apex_available: ["com.android.nearby"],
+
+    // The bootclasspath_fragments that provide APIs on which this depends.
+    fragments: [
+        {
+            apex: "com.android.art",
+            module: "art-bootclasspath-fragment",
+        },
+    ],
+
+    // Additional stubs libraries that this fragment's contents use which are
+    // not provided by another bootclasspath_fragment.
+    additional_stubs: [
+        "android-non-updatable",
+    ],
 }