Update name to `kotlinx_serialization_core`

Bug: 322508920, 328943579
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:1f01bf41f9b5f039e0cd1426c1ff6999ddef36c2)
Merged-In: Idf955e7995d9d4754e3855259d99095a2993f981
Change-Id: Idf955e7995d9d4754e3855259d99095a2993f981
diff --git a/Android.bp b/Android.bp
index cca69f0..67ac91c 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,5 +1,5 @@
 java_library {
-    name: "kotlinx_serialization",
+    name: "kotlinx_serialization_core",
     host_supported: true,
     sdk_version: "core_current",
     srcs: ["core/jvmMain/src/kotlinx/serialization/**/*.kt"],
@@ -9,6 +9,10 @@
         "-opt-in=kotlinx.serialization.ExperimentalSerializationApi",
         "-opt-in=kotlinx.serialization.InternalSerializationApi",
     ],
+    apex_available: [
+        "//apex_available:platform",
+        "//apex_available:anyapex",
+    ],
 }
 
 java_library {
@@ -22,5 +26,9 @@
         "-opt-in=kotlinx.serialization.ExperimentalSerializationApi",
         "-opt-in=kotlinx.serialization.InternalSerializationApi",
     ],
-    static_libs: ["kotlinx_serialization"],
+    static_libs: ["kotlinx_serialization_core"],
+    apex_available: [
+        "//apex_available:platform",
+        "//apex_available:anyapex",
+    ],
 }