From c5ce7392edfed867d5248495015e3ed7e78540d7 Mon Sep 17 00:00:00 2001 From: Charlie Finlayson Date: Tue, 12 Mar 2024 11:47:29 +0000 Subject: [PATCH] Add lifecycle-viewmodel to app build.gradle Fixes a number of issues that arise when trying to run on Android Studio Iguana | 2023.2.1: --- lite/examples/object_detection/android/app/build.gradle | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lite/examples/object_detection/android/app/build.gradle b/lite/examples/object_detection/android/app/build.gradle index 2e103f54342..9d567174870 100644 --- a/lite/examples/object_detection/android/app/build.gradle +++ b/lite/examples/object_detection/android/app/build.gradle @@ -120,4 +120,9 @@ dependencies { // Import the GPU delegate plugin Library for GPU inference implementation 'org.tensorflow:tensorflow-lite-gpu-delegate-plugin:0.4.0' implementation 'org.tensorflow:tensorflow-lite-gpu:2.9.0' + + //Viewmodels + def lifecycle_version = "2.4.0" + implementation "androidx.lifecycle:lifecycle-viewmodel:$lifecycle_version" + implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version" }