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?

1
7 comments

Thanks a lot.

Disabling the Android plugin worked.

Sorry, wasted your time.

8

Yadaom You saved me many hours. Disabling the Android plugin did the trick.

0

Yadaom thank you so much for that one-liner! You saved time for a lot of people. Much appreciated!

0

Yadaom thanks, saved me a lot of time!

0

This problem has been fixed in 2021.3 IDE versions.

0

Please sign in to leave a comment.