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

Peter Mortensen
  • 12,090
  • 23
  • 70
  • 90
The Badak
  • 193
  • 6

2 Answers2

10

Just upgrade your Android Gradle plugin manually to alpha 4.

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

Peter Mortensen
  • 12,090
  • 23
  • 70
  • 90
karuto
  • 216
  • 1
  • 2
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'

Peter Mortensen
  • 12,090
  • 23
  • 70
  • 90
  • 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 06:59