9

I updated Android Studio 3.6 Canary 3 to 3.6 Canary 4 few hours ago, and just moments ago I tried to open a project, but it didn't even configure when I opened the project.

I already had Gradle 3.6.0-alpha04 before updating to 3.6C4**

Why is Gradle throwing this exception?

To me, it looks like there's something wrong with its code... but I'm not sure.

FAILURE: Build failed with an exception.

* What went wrong:
java.io.NotSerializableException: com.android.build.gradle.internal.ide.DefaultProjectSyncIssues
> com.android.build.gradle.internal.ide.DefaultProjectSyncIssues

* 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.

* Get more help at https://help.gradle.org

CONFIGURE FAILED in 20s
Cause: com.android.build.gradle.internal.ide.DefaultProjectSyncIssues
ERROR: Cause: com.android.build.gradle.internal.ide.DefaultProjectSyncIssues

Is there a solution?


I changed back to AS 3.6 Canary 3 because it works

2
  • 1
    This is more like a stackoverflow.com question Jun 27 '19 at 18:57
  • @AlexBurdusel yes, but i thought problems related to softwares and their crashes and troubleshooting would be appropriate in Superuser
    – The Badak
    Jun 28 '19 at 6:56
10

Just upgrade your Android Gradle plugin manually to alpha 4.

classpath 'com.android.tools.build:gradle:3.6.0-alpha04'

6
  • i already had that version before updating, and i even invalidated cache and deleted every folder related to Gradle and Android Studio, but nothing worked
    – The Badak
    Jun 28 '19 at 6:58
  • @TheBadak - You're updating in the project build.gradle? This worked for me! Jul 2 '19 at 5:20
  • 1
    @AjahnCharles i created a new project and it didn't show any error no idea what happened, but welp at least it's working
    – The Badak
    Jul 3 '19 at 13:31
  • @TheBadak - Welcome to Canary ;) Jul 4 '19 at 10:07
  • @AjahnCharles lol thanks man, i was on canary before, years later i switched to beta, then back to stable and now again on canary 😂😂
    – The Badak
    Jul 6 '19 at 9:25
5

I ran into the same issue, and updating my Gradle build tools version did the trick:

classpath 'com.android.tools.build:gradle:3.6.0-alpha04'

1
  • i already had that version before updating, and i even invalidated cache and deleted every folder related to Gradle and Android Studio, but nothing worked
    – The Badak
    Jun 28 '19 at 6:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.