title: gradle build failed in android studio in new version
body: <p>I have issue with gradle how to solve this</p>
  <p>FAILURE: Build completed with 3 failures.</p>
  <h2>1: Task failed with an exception.</h2>
  <ul>
  <li>What went wrong:
  Execution failed for task ':app:mergeDebugJavaResource'.</li>
  </ul>
  <blockquote>
  <p>Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
  Failed to transform sqlite-framework-2.1.0.jar (androidx.sqlite:sqlite-framework:2.1.0) to match attributes {artifactType=android-java-res, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
  &gt; Could not find sqlite-framework-2.1.0.jar (androidx.sqlite:sqlite-framework:2.1.0).
  Searched in the following locations:
  <a href="https://dl.google.com/dl/android/maven2/androidx/sqlite/sqlite-framework/2.1.0/sqlite-framework-2.1.0.jar" rel="nofollow noreferrer">https://dl.google.com/dl/android/maven2/androidx/sqlite/sqlite-framework/2.1.0/sqlite-framework-2.1.0.jar</a></p>
  </blockquote>
  <ul>
  <li>Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
  ==============================================================================</li>
  </ul>
  <h2>2: Task failed with an exception.</h2>
  <ul>
  <li>What went wrong:
  Execution failed for task ':app:checkDebugDuplicateClasses'.</li>
  </ul>
  <blockquote>
  <p>Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
  Failed to transform sqlite-framework-2.1.0.jar (androidx.sqlite:sqlite-framework:2.1.0) to match attributes {artifactType=enumerated-runtime-classes, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
  &gt; Could not find sqlite-framework-2.1.0.jar (androidx.sqlite:sqlite-framework:2.1.0).
  Searched in the following locations:
  <a href="https://dl.google.com/dl/android/maven2/androidx/sqlite/sqlite-framework/2.1.0/sqlite-framework-2.1.0.jar" rel="nofollow noreferrer">https://dl.google.com/dl/android/maven2/androidx/sqlite/sqlite-framework/2.1.0/sqlite-framework-2.1.0.jar</a></p>
  </blockquote>
  <ul>
  <li>Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
  ==============================================================================</li>
  </ul>
  <h2>3: Task failed with an exception.</h2>
  <ul>
  <li>What went wrong:
  Execution failed for task ':app:mergeDebugNativeLibs'.</li>
  </ul>
  <blockquote>
  <p>Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
  Failed to transform sqlite-framework-2.1.0.jar (androidx.sqlite:sqlite-framework:2.1.0) to match attributes {artifactType=android-jni, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
  &gt; Could not find sqlite-framework-2.1.0.jar (androidx.sqlite:sqlite-framework:2.1.0).
  Searched in the following locations:
  <a href="https://dl.google.com/dl/android/maven2/androidx/sqlite/sqlite-framework/2.1.0/sqlite-framework-2.1.0.jar" rel="nofollow noreferrer">https://dl.google.com/dl/android/maven2/androidx/sqlite/sqlite-framework/2.1.0/sqlite-framework-2.1.0.jar</a></p>
  </blockquote>
  <ul>
  <li><p>Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
  ==============================================================================</p>
  </li>
  <li><p>Get more help at <a href="https://help.gradle.org" rel="nofollow noreferrer">https://help.gradle.org</a></p>
  </li>
  </ul>
  <p>Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.</p>
  <p>You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.</p>
  <p>See <a href="https://docs.gradle.org/7.2/userguide/command_line_interface.html#sec:command_line_warnings" rel="nofollow noreferrer">https://docs.gradle.org/7.2/userguide/command_line_interface.html#sec:command_line_warnings</a></p>
  <p>BUILD FAILED in 16s
  25 actionable tasks: 6 executed, 19 up-to-date</p>
  <pre><code>enter code here
  plugins {
      id 'com.android.application'
      id 'kotlin-android'
  }
  
  android {
      compileSdk 31
  
      defaultConfig {
          applicationId &quot;com.parsa.myapplication2&quot;
          minSdk 21
          targetSdk 31
          versionCode 1
          versionName &quot;1.0&quot;
  
          testInstrumentationRunner &quot;androidx.test.runner.AndroidJUnitRunner&quot;
          targetSdkVersion 30
      }
  
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
          }
      }
      compileOptions {
          sourceCompatibility JavaVersion.VERSION_1_8
          targetCompatibility JavaVersion.VERSION_1_8
      }
      kotlinOptions {
          jvmTarget = '1.8'
      }
      compileSdkVersion 30
      buildToolsVersion '30.0.2'
  }
  
  dependencies {
  
      implementation 'androidx.core:core-ktx:1.6.0'
      implementation 'androidx.appcompat:appcompat:1.3.1'
      implementation 'com.google.android.material:material:1.4.0'
      implementation 'androidx.constraintlayout:constraintlayout:2.1.0'
      testImplementation 'junit:junit:4.+'
      androidTestImplementation 'androidx.test.ext:junit:1.1.3'
      androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
      def koin_version=&quot;3.1.2&quot;
      implementation 'androidx.core:core-ktx:1.6.0'
      implementation 'androidx.appcompat:appcompat:1.3.1'
      implementation 'com.google.android.material:material:1.4.0'
      implementation 'androidx.constraintlayout:constraintlayout:2.1.0'
      testImplementation 'junit:junit:4.+'
      androidTestImplementation 'androidx.test.ext:junit:1.1.3'
      androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  
      implementation &quot;io.insert-koin:koin-android:$koin_version&quot;
      implementation &quot;io.insert-koin:koin-android-compat:$koin_version&quot;
      implementation &quot;io.insert-koin:koin-androidx-workmanager:$koin_version&quot;
      implementation &quot;io.insert-koin:koin-androidx-compose:$koin_version&quot;
      implementation 'com.squareup.retrofit2:retrofit:2.9.0'
      implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
      implementation 'com.google.code.gson:gson:2.8.8'
      implementation 'io.reactivex.rxjava2:rxjava:2.2.9'
      implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
      implementation 'com.squareup.retrofit2:adapter-rxjava2:2.9.0'
  
  
      def nav_version = &quot;2.3.2&quot;
      implementation &quot;androidx.navigation:navigation-fragment-ktx:$nav_version&quot;
      implementation &quot;androidx.navigation:navigation-ui-ktx:$nav_version&quot;
      implementation &quot;androidx.navigation:navigation-runtime-ktx:$nav_version&quot;
  
      implementation &quot;androidx.viewpager2:viewpager2:1.0.0&quot;
      implementation 'com.facebook.fresco:fresco:2.5.0'
      implementation 'com.tbuonomo:dotsindicator:4.2'
  
  }
  </code></pre>