Android Studio Could not initialize class org.codehaus.groovy.runtime.InvokerHelper

后端 未结 16 1358
一整个雨季
一整个雨季 2020-12-02 11:29

I am new in Android Studio. After setup, When I am trying to import an application I am getting that error So that gradle not able to build.

Error:Could not

16条回答
  •  悲哀的现实
    2020-12-02 12:16

    I'm using Pop OS 20.04 and I have Java versions 8, 11 and 14 installed on my notebook.

    This error was happening to me when version 14 was standard.

    When I switched to using version 11 as the default, the error no longer occurred.

    sudo update-alternatives --config java
    

提交回复
热议问题