Using Maven dependency i get strange error in Intellij IDEA: "library sourc

  1. Using Maven dependency i get strange error in Intellij IDEA: “library source does not match the bytecode”.

  2. Is it an mistake in code samples?

.setChartType(C3ChartType.BAR)
change to:
.setChartType(C3Data.ChartType.BAR)
  1. Trying to use dependency from [link]
    (https://mvnrepository.com/artifact/com.github.mdre/chartlib/0.5.2). Result: IDEA returns that line: “class file has wrong version 55.0, should be 52.0”. Please compile for Java 1.8.

Yes, the component is for J.11.
Download the code from github and run

$ gradle build install

from the project root. It will build a new version.
After that, reference that version in the package manager.