summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Delmerico <delmerico@google.com>2023-01-06 11:09:05 -0500
committerSam Delmerico <delmerico@google.com>2023-01-06 15:08:08 -0500
commitdee37cf3b273d1c564b7101902dccb63f371506e (patch)
treea1a82383a5ac2de3acdb388fe0e46021d527b797
parentf8f9d3db9845403ebeb642b28b0c1647fbd4ffc2 (diff)
downloadkotlinc-dee37cf3b273d1c564b7101902dccb63f371506e.tar.gz
add jdk7 dependency to kotlin-stdlib-jdk8
JDK8PlatformImplementations in kotlin-stdlib-jdk8.jar extends JDK7PlatformImplementations that is defined in kotlin-stdlib-jdk7. During optimization, r8 complains that JDK8PlatformImplementations is extending a missing class, so we should instead always package the JDK7 class in with the JDK8 module. Bug: 242088131 Change-Id: I895704e4df71db24fc813571fb5700c2707f37af
-rw-r--r--Android.bp5
1 files changed, 4 insertions, 1 deletions
diff --git a/Android.bp b/Android.bp
index b3ffdc7..d185880 100644
--- a/Android.bp
+++ b/Android.bp
@@ -58,7 +58,10 @@ java_import {
java_import {
name: "kotlin-stdlib-jdk8",
host_supported: true,
- jars: ["lib/kotlin-stdlib-jdk8.jar"],
+ jars: [
+ "lib/kotlin-stdlib-jdk8.jar",
+ "lib/kotlin-stdlib-jdk7.jar",
+ ],
sdk_version: "core_current",
exclude_dirs: ["META-INF/versions"],
apex_available: [