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?
Best Answer
Just upgrade your Android Gradle plugin manually to alpha 4.
classpath 'com.android.tools.build:gradle:3.6.0-alpha04'