找不到 LibGDX + Gradle + Maven 对吐温引擎的引用



我在Windows7上使用Eclipse Luna,并试图通过本地Maven repo导入通用Tween引擎。

我遇到了这个问题中列出的相同错误:

更新Gradle引用以包括maven本地jar(libGDX和Tween引擎)

我推断我在同一条沟里,因为图像反映了我基于用户共享内容的设置。

然而,答案和建议并没有解决这个问题。

失败后,我决定尝试中列出的其他选项:https://github.com/libgdx/libgdx/wiki/Universal-Tween-Engine,特别是FileTree Dependency方法,但也无济于事(以及查看此响应,为什么我在设置LibGDX时没有通用的tween引擎)。

运行gradlew --refresh-dependencies运行良好,构建成功。

运行gradlew eclipse命令返回以下输出:

Configuration on demand is an incubating feature.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':android'.
> Could not resolve all dependencies for configuration ':android:_debugCompile'.
   > Could not find aurelienribon:tweenengine:6.3.3.
     Required by:
         game:android:1.0 > game:core:1.0
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED

想法?如果你需要更多的信息,我可以提供。我只是不确定可能需要什么。

我也遇到了同样的问题。无论出于什么原因,我都无法让Maven回购发挥作用,尽管它在以前的项目中也起过作用。

最初,将导出的文件夹复制到-/libs的技巧对我来说不起作用。我所做的是复制tween-engine-api-6.3.3文件夹中的jar文件,并将其直接粘贴到/libs文件夹中。然后就成功了!我认为维基可以澄清这一步骤。

最新更新