Adding ATMs to IntelliJ IDEA 12

I am trying to follow the description here. The correct way to add lib / *. jar to IntelliJ IDEA project? to make some static utilities from the jar available, but keep getting the "Unable to fix character" errors.

I do the following: go to the project structure using Ctrl + Shift + Alt + S โ†’ select module โ†’ Dependencies โ†’

add -> Library -> find jar -> accept class and source assignment.

In the linked description, instead of "Library", "Project Libraries" is selected, but I do not see this option with version 12.1.4.

In the project view, I now have a library under "External Libraries" containing the jar, but I keep getting "Can't resolve character" when I use the static method from jar. When I expand the jar from the project view under my library in the "External Libraries" section, the necessary class is present. I tried different things from project settings, for example. adding a jar like "Boxes or directories", but with the same result. The code that I reference the class in jar from has an explicit package operator.

+6
source share
1 answer

After adding the jar, first clear the cache, and then run the sbt clean, reboot and update commands from the command line or sbt console, which will help the idea of โ€‹โ€‹accepting code from the jar.

+1
source

Source: https://habr.com/ru/post/952917/


All Articles