android - Project is using an incompatible version (AGP 8.8.0) even though it's up-to-date. The compiler says the latest

admin2025-04-17  3

I was following Google's Intro to state in Compose tutorial and I got stuck with this error:

The project is using an incompatible version (AGP 8.8.0) of the Android Gradle plug-in. Latest supported version is AGP 8.7.3.
See Android Studio & AGP compatibility options.

I looked up on the Internet, have found this and that, but it seems to me that in most, if all, questions regarding the exact same thing, authors had used older versions and had to just update their Android Studio to the latest version there is. Unfortunately, mine is up-to-date, with all my plug-ins being regularly updated as well. Then, I was trying to somehow tweak the settings in build.gradle file, but somehow, I assume because I couldn't even build the project, I don't have it at all. One possible solution might be to just use a downgraded/older version of the Studio, but I don't see how it'll make things better in the future. Thanks everyone in advance!

I was following Google's Intro to state in Compose tutorial and I got stuck with this error:

The project is using an incompatible version (AGP 8.8.0) of the Android Gradle plug-in. Latest supported version is AGP 8.7.3.
See Android Studio & AGP compatibility options.

I looked up on the Internet, have found this and that, but it seems to me that in most, if all, questions regarding the exact same thing, authors had used older versions and had to just update their Android Studio to the latest version there is. Unfortunately, mine is up-to-date, with all my plug-ins being regularly updated as well. Then, I was trying to somehow tweak the settings in build.gradle file, but somehow, I assume because I couldn't even build the project, I don't have it at all. One possible solution might be to just use a downgraded/older version of the Studio, but I don't see how it'll make things better in the future. Thanks everyone in advance!

Share Improve this question edited Jan 31 at 0:05 tyg 16.7k4 gold badges38 silver badges49 bronze badges asked Jan 30 at 20:34 loccaallloccaall 1132 silver badges11 bronze badges 1
  • Please edit your question to provide a minimal reproducible example of the build files so we can reproduce the issue. – tyg Commented Jan 31 at 0:10
Add a comment  | 

1 Answer 1

Reset to default 2

Unfortunately, mine is up-to-date, with all my plug-ins being regularly updated as well.

I'd suggest restarting your PC and invalidating the caches in android studio.

for anyone who is reading this and did not update their android studio: Update your android studio.

https://developer.android.com/studio/releases

      Android Studio version          Required AGP version
  Ladybug Feature Drop | 2024.2.2           3.2-8.8
  Ladybug | 2024.2.1                        3.2-8.7  // notice how this version
                                                     // does not support 8.8
转载请注明原文地址:http://anycun.com/QandA/1744891549a89092.html