I updated to the latest iguana and I'm getting del...
# android-studio
c
I updated to the latest iguana and I'm getting delightful error messages that I can't seem to resolve: 🧵
Copy code
class com.android.tools.idea.gradle.project.sync.SyncVariantResultFailure cannot be cast to class com.android.tools.idea.gradle.project.sync.SyncVariantResultSuccess (com.android.tools.idea.gradle.project.sync.SyncVariantResultFailure and com.android.tools.idea.gradle.project.sync.SyncVariantResultSuccess are in unnamed module of loader org.gradle.internal.classloader.VisitableURLClassLoader @1ac446ce)
class com.android.tools.idea.gradle.project.sync.SyncVariantResultFailure cannot be cast to class com.android.tools.idea.gradle.project.sync.SyncVariantResultSuccess (com.android.tools.idea.gradle.project.sync.SyncVariantResultFailure and com.android.tools.idea.gradle.project.sync.SyncVariantResultSuccess are in unnamed module of loader org.gradle.internal.classloader.VisitableURLClassLoader @1ac446ce)

Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)

Re-download dependencies and sync project (requires network)
The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.

Stop Gradle build processes (requires restart)
Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.

In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
e
Did you update your AGP also?
c
I tried alpha12, but it's not supported by the IDE apparently
d
Check JDK or JBL version too
e
> I tried alpha12, but it’s not supported by the IDE apparently Whats the error? (it is supported btw)
d
I had similar error which was due to inconsistent jdk it should 17 but i was using 1.8
c
I'll check JVM and report back
Copy code
Android Studio Iguana | 2023.2.1 Canary 12
Build #AI-232.10203.10.2321.11040444, built on November 2, 2023
Runtime version: 17.0.8+0-17.0.8b1000.22-10799086 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 14.0
GC: G1 Young Generation, G1 Old Generation
Memory: 16384M
Cores: 10
Metal Rendering is ON
Registry:
    external.system.auto.import.disabled=true
    ide.text.editor.with.preview.show.floating.toolbar=false
    ide.experimental.ui=true

Non-Bundled Plugins:
    idea.plugin.protoeditor (232.9559.10)
    org.jetbrains.compose.desktop.ide (1.5.10)
Copy code
The project is using an incompatible version (AGP 8.3.0-alpha12) of the Android Gradle plugin. Latest supported version is AGP 8.3.0-alpha11 at:
using Zulu 17.0.7 jdk
I'm using SDK Man so any recommendations on other JDK are welcome so long as they appear in that list
d
you may need to find other solution then
c
trying the JBR jdk just incase
no, still get the same issue, woo
I had to roll back to canary 11
p
same issue here. can't use 8.3.0-alpha12 with iguana canary 12. This happened to me before with previous Iguana versions (2 or 3 versions as far as I remember)
looks fixed on canary 13 ✅
🚀 1
296 Views