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" }