I am using intellij 14 with scala 2.11.6 installed using home brew and symlink using
ln -s /usr/local/Cellar/scala/2.11.6/libexec/src /usr/local/Cellar/scala/2.1
This worked for me. I'm using Idea 2019.2.2 and Windows 10.
In the folder .idea/libraries/
I had two files: sbt__org_scala_lang_scala_library_2_13_0_jar.xml
and sbt__org_scala_lang_scala_library_2_13_0_jar2.xml
.
I deleted the second file. Then I opend the first one and there were duplicate lines:
So I deleted duplicates and errors disappeared. Hope this will help someone else.