From 525a198ec8c5aa4fb031353857a795b2e60c3954 Mon Sep 17 00:00:00 2001 From: Michael Bestas Date: Fri, 2 Sep 2022 10:23:55 +0300 Subject: [PATCH] {seedvault|storage}: Add explicit dependencies for androidx.{fragment|activity} Fixes: E AndroidRuntime: FATAL EXCEPTION: main E AndroidRuntime: Process: com.stevesoltys.seedvault, PID: 6688 E AndroidRuntime: java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/fragment/app/FragmentViewModelLazyKt; Change-Id: I74d9cc78739db8496865439b9dcc2c31dc4b5416 --- Android.bp | 2 ++ storage/lib/Android.bp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Android.bp b/Android.bp index 951547cd..cb2c1859 100644 --- a/Android.bp +++ b/Android.bp @@ -26,6 +26,8 @@ android_app { static_libs: [ "kotlin-stdlib-jdk8", "androidx.core_core-ktx", + "androidx.fragment_fragment-ktx", + "androidx.activity_activity-ktx", "androidx.preference_preference", "androidx.documentfile_documentfile", "androidx.lifecycle_lifecycle-viewmodel-ktx", diff --git a/storage/lib/Android.bp b/storage/lib/Android.bp index 3712d5f0..4d25e3d2 100644 --- a/storage/lib/Android.bp +++ b/storage/lib/Android.bp @@ -17,6 +17,8 @@ android_library { "seedvault-lib-tink-android", "libprotobuf-java-lite", "androidx.core_core-ktx", + "androidx.fragment_fragment-ktx", + "androidx.activity_activity-ktx", "androidx.documentfile_documentfile", "androidx.lifecycle_lifecycle-viewmodel-ktx", "androidx.room_room-runtime",