diff --git a/lite/examples/image_segmentation/android/app/build.gradle b/lite/examples/image_segmentation/android/app/build.gradle index 20eccb49d87..0457f4e3197 100644 --- a/lite/examples/image_segmentation/android/app/build.gradle +++ b/lite/examples/image_segmentation/android/app/build.gradle @@ -7,12 +7,13 @@ plugins { } android { - compileSdk 32 + compileSdk 33 + namespace = "org.tensorflow.lite.examples.imagesegmentation" defaultConfig { applicationId "org.tensorflow.lite.examples.imagesegmentation" minSdk 23 - targetSdk 32 + targetSdk 33 versionCode 1 versionName "1.0" @@ -26,13 +27,14 @@ android { } } compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 + sourceCompatibility JavaVersion.VERSION_17 + targetCompatibility JavaVersion.VERSION_17 } kotlinOptions { - jvmTarget = '1.8' + jvmTarget = '17' } + buildFeatures { viewBinding true } diff --git a/lite/examples/image_segmentation/android/app/src/main/AndroidManifest.xml b/lite/examples/image_segmentation/android/app/src/main/AndroidManifest.xml index b82c2d04495..8521776cce9 100644 --- a/lite/examples/image_segmentation/android/app/src/main/AndroidManifest.xml +++ b/lite/examples/image_segmentation/android/app/src/main/AndroidManifest.xml @@ -16,8 +16,7 @@ --> + xmlns:tools="http://schemas.android.com/tools"> diff --git a/lite/examples/image_segmentation/android/build.gradle b/lite/examples/image_segmentation/android/build.gradle index 455244334bc..25b66d157ea 100644 --- a/lite/examples/image_segmentation/android/build.gradle +++ b/lite/examples/image_segmentation/android/build.gradle @@ -6,9 +6,9 @@ buildscript { } } plugins { - id 'com.android.application' version '7.2.0' apply false - id 'com.android.library' version '7.2.0' apply false - id 'org.jetbrains.kotlin.android' version '1.6.21' apply false + id 'com.android.application' version '8.1.0' apply false + id 'com.android.library' version '8.1.0' apply false + id 'org.jetbrains.kotlin.android' version '1.8.10' apply false } task clean(type: Delete) { diff --git a/lite/examples/recommendation/android/app/build.gradle b/lite/examples/recommendation/android/app/build.gradle index f50710f322c..5dbfaef9ad2 100644 --- a/lite/examples/recommendation/android/app/build.gradle +++ b/lite/examples/recommendation/android/app/build.gradle @@ -1,10 +1,10 @@ apply plugin: 'com.android.application' android { + namespace = "org.tensorflow.lite.examples.recommendation" compileSdkVersion 29 - buildToolsVersion "29.0.0" defaultConfig { - applicationId "org.tensorflow.lite.examples.bertapp" + applicationId "org.tensorflow.lite.examples.recommendation" minSdkVersion 26 targetSdkVersion 29 versionCode 1 diff --git a/lite/examples/recommendation/android/app/src/main/AndroidManifest.xml b/lite/examples/recommendation/android/app/src/main/AndroidManifest.xml index 404c36dfbdd..0f7d52cfe12 100644 --- a/lite/examples/recommendation/android/app/src/main/AndroidManifest.xml +++ b/lite/examples/recommendation/android/app/src/main/AndroidManifest.xml @@ -1,6 +1,5 @@ - +