zacharee / LockscreenWidgets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Gradle project sync failed." Can Gradle be downgraded, or must IDE be updated?

e-t-l opened this issue · comments

commented

I just imported this repo into Android Studio (Flamingo, the current stable release), and I got the error:

The project is using an incompatible version (AGP 8.2.0-alpha03) of the Android Gradle plugin. Latest supported version is AGP 8.0.1
[See Android Studio & AGP compatibility options.](https://developer.android.com/studio/releases#android_gradle_plugin_and_android_studio_compatibility)

Following that link, it looks like the only Android Studio version that supports Gradle 8.2 is Hedgehog, the canary version. I'd prefer not to use a preview version of something as important as an IDE; is it possible to downgrade Gradle or do something else to make this work in Flamingo? Thanks!

commented

I tried changing classpath in Build.Gradle to 8.0.1 and that worked and got the following build error
(and yes even though it does appear related to android.jar, I did already replace that file in the android-33 directory as instructed in the ReadMe)

My bad! The issue was that the android.jar file was corrupted because the download had been interrupted. I redownloaded it I was able to build perfectly!