Skip to content

Commit

Permalink
Add lifecycle-viewmodel to app build.gradle
Browse files Browse the repository at this point in the history
Fixes a number of issues that arise when trying to run on Android Studio Iguana | 2023.2.1:
  • Loading branch information
UnreachableCode authored Mar 12, 2024
1 parent fff4bcd commit c5ce739
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lite/examples/object_detection/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit c5ce739

Please sign in to comment.