Closed vbabenkoru closed 3 years ago
I also tried adding libraryDependencies += "net.java.dev.jna" % "jna" % "5.7.0"
to plugins.sbt, but that didn't work either.
And replacing .sbt/boot/scala-2.12.14/org.scala-sbt/sbt/1.5.5/jna-5.5.0.jar
with a jna-5.8.0.jar
fixes the issue, so bumping the dependency in sbt.io is definitely required.
The JNA library version (5.5.0) crashes on Apple M1, updating it to 5.7.0 or higher should resolve this. I'm getting this error when running our Scala/Play app via
sbt run
:Updating JNA in our project's build.sbt doesn't help: it only updates JNA in the app's classpath, not in the sbt launcher classpath. Looks like the only way to resolve this is to bump the JNA dependency in sbt.io (that is itself a dependency of the sbt launcher).