skip to Main Content

With the update of Android Studio Hedgehog | 2023.1.1 | Patch 2, Kotlin 1.7.0, and Gradle being set yet as 7.4, we have this error with not so much info on how to resolve it.

Has anyone else experienced this exact error or have ideas where to look?

it also gives Caused by: [CIRCULAR REFERENCE: com.android.tools.r8.kotlin.H] error message at the end of the build output, but we have no circular dependencies within our app modules.

2

Answers


  1. I faced the same error. I solved it by changing the Gradle version in gradle-wrapper.properties and matching it with a compatible plugin version in project level build.gradle file

    In project level build.gradle

     plugins {
        id 'com.android.application' version '8.2.2' apply false
        id 'com.android.library' version '8.2.2' apply false
        id 'com.google.gms.google-services' version '4.3.15' apply false
    }
    

    In gradle-wrapper.properties

    distributionUrl = https://services.gradle.org/distributions/gradle-8.2-bin.zip
    
    Login or Signup to reply.
  2. Changing minimumSDK from 22 to 26 in project level build.gradle, solved my issue.

    defaultConfig {
        minSdk 26
        targetSdk 33       
    }
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search