如何解决构建错误?

How can I resolve my build error?

我可以在 Windows 8.1 上构建项目。尝试使用 Ubuntu 时,我收到此错误消息

Description Resource Path Location Type
The method interpolateLocal(Vector2f, Vector2f, float) is undefined for the type Vector2f NavMesh.java /spaceworld/src/jme3tools/navmesh line 230 Java Problem

违规代码不是我的。

if (d1 < d2){                           
  intersectionPoint.interpolateLocal(wall.getPointA(), wall.getPointB(), distBlend);
  newWayPoint = new Vector3f(intersectionPoint.x, 0, intersectionPoint.y);
}else{
  intersectionPoint.interpolateLocal(wall.getPointB(), wall.getPointA(), distBlend);
  newWayPoint = new Vector3f(intersectionPoint.x, 0, intersectionPoint.y);
}

我已经包含了 cai-nmgen-0.1.2.jar 和 jme3 jar,就像我在 windows 上所做的那样,以使其工作。为什么它无法构建?

根据 Vector3f and interpolate vs. interpolateLocal 博客 post,jme3 库的版本 3.0.10 和 3.1 之间的此方法似乎有一些中断更改。

所以你最好检查你在 Windows 8.1 上使用的版本,并弄清楚旧的依赖项(或其他一些包传递依赖项)是否在构建路径中。

也尝试使用 Ubuntu 版本 jme3 库版本 3 的代码。0.x