Gradle build in WSL failing with error Unable to load class 'com.android.ide.gradle.model.GradlePluginModel
Hello,
I am trying to build a Gradle Java project in Windows WSL but Intellij is failing with error:
Unable to load class 'com.android.ide.gradle.model.GradlePluginModel PluginClassLoader(plugin=PluginDescriptor(name=Gradle, id=com.intellij.gradle, descriptorPath=plugin.xml, path=C:\Program Files\JetBrains\IntelliJ IDEA 2021.1\plugins\gradle, version=211.7442.40, package=null), packagePrefix=null, instanceId=25, state=active)'.
This is an unexpected error. Please file a bug containing the idea.log file.
Here is the link to attached idea.log file.
https://www.dropbox.com/s/omon3pw5ek9poxd/idea.log.zip?dl=0
Can someone help?
Please sign in to leave a comment.
Hello,
It's a known issue with Gradle on WSL, please follow https://youtrack.jetbrains.com/issue/IDEA-265256 for updates.
Follow https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications if you're not familiar with YouTrack.
Thanks a lot.
Disabling the Android plugin worked.
Sorry, wasted your time.
Yadaom You saved me many hours. Disabling the Android plugin did the trick.
Yadaom thank you so much for that one-liner! You saved time for a lot of people. Much appreciated!
Yadaom Thank you!
Yadaom thanks, saved me a lot of time!
This problem has been fixed in 2021.3 IDE versions.