here is my build.gradle (project: Harmonic_Analysis_Camera) "buildscript { repositories { google() mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:7.0.2' } } plugins { id 'com.android.application' id 'kotlin-android' apply plugin: 'com.android.application' } android { compileSdk 31 defaultConfig { applicationId "com.example.harmonicanalysiscamera" minSdk 24 targetSdk 31 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildTypes { release { // TODO: Add your own signing config for the release build. // Signing config can be defined in the ~/.gradle/gradle.properties file. // See https://developer.android.com/studio/publish/app-signing#gradle-config minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility = JavaVersion.VERSION_11 targetCompatibility = JavaVersion.VERSION_11 } kotlinOptions { jvmTarget = '11' } } dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation 'androidx.core:core-ktx:1.6.0' implementation 'androidx.appcompat:appcompat:1.4.0' implementation 'com.google.android.material:material:1.4.0' implementation 'androidx.constraintlayout:constraintlayout:2.1.0' // CameraX dependencies implementation "androidx.camera:camera-core:1.1.0-alpha04" implementation "androidx.camera:camera-camera2:1.1.0-alpha04" implementation "androidx.camera:camera-lifecycle:1.1.0-alpha04" implementation "androidx.camera:camera-view:1.0.0-alpha31" implementation "androidx.camera:camera-extensions:1.0.0-alpha31" // Compose dependencies implementation "androidx.compose.ui:ui:$compose_version" implementation "androidx.compose.ui:ui-tooling:$compose_version" implementation "androidx.compose.material:material:$compose_version" implementation "androidx.compose.runtime:runtime-livedata:$compose_version" implementation "androidx.navigation:navigation-compose:2.4.0-alpha10" // Navigation dependencies implementation "androidx.navigation:navigation-fragment:$navigation_version" implementation "androidx.navigation:navigation-ui:$navigation_version" // Testing dependencies testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' } ", Here is my build.gradle (module :app)