diff --git a/Android.bp b/Android.bp
index fe426e779561dd458ee1c3e6ed4ed241099aeb54..b4e02c0a092f7bd4f8be80517dcbb95e29ccea91 100644
--- a/Android.bp
+++ b/Android.bp
@@ -612,8 +612,6 @@ stubs_defaults {
 }
 
 build = [
-    "StubLibraries.bp",
-    "ApiDocs.bp",
     "ProtoLibraries.bp",
     "TestProtoLibraries.bp",
 ]
diff --git a/api/Android.bp b/api/Android.bp
index 9d20eca75f8f77c0c3f3a2f1ef812027f579f1cb..f40f0c990f72b4be24ff9bf7d1f7551000ea9290 100644
--- a/api/Android.bp
+++ b/api/Android.bp
@@ -252,3 +252,8 @@ java_genrule {
     out: ["api_fingerprint.txt"],
     cmd: "cat $(in) | md5sum | cut -d' ' -f1 > $(out)",
 }
+
+build = [
+    "ApiDocs.bp",
+    "StubLibraries.bp",
+]
diff --git a/ApiDocs.bp b/api/ApiDocs.bp
similarity index 100%
rename from ApiDocs.bp
rename to api/ApiDocs.bp
diff --git a/StubLibraries.bp b/api/StubLibraries.bp
similarity index 100%
rename from StubLibraries.bp
rename to api/StubLibraries.bp
diff --git a/api/docs b/api/docs
new file mode 120000
index 0000000000000000000000000000000000000000..a9594bfe4ab69aca32d7c51b17985ad9ee89e563
--- /dev/null
+++ b/api/docs
@@ -0,0 +1 @@
+../docs
\ No newline at end of file