Source : Stack Overflow
1
In my case it was a compatibility problem between AGP (Android Gradle Plugin) and Gradle version:
Wrong config: AGP: 8.4.0 Gradle: 8.7
Good config: AGP: 8.4.0 Gradle: 8.6
I was facing the same issue. I just changed the version of these two lines. Replace these two lines with yours and sync the project.
Build.gradle (Project)
- classpath 'com.android.tools.build:gradle:7.0.4'
Gradle.wrapper.properties
- distributionUrl=https://services.gradle.org/distributions/gradle-7.5.1-bin.zip
I am using:
Android Studio Dolphin | 2021.3.1 Patch 1 Build #AI-213.7172.25.2113.9123335, built on September 30, 2022
No comments:
Post a Comment