更新摇篮引用包括本地Maven罐(libGDX&安培;吐温引擎)安培、摇篮、吐温、引擎

2023-09-06 08:31:08 作者:蝴蝶易碎、海风难追

我按照这个步骤设置外部依赖关系:

I follow this steps for setting External dependencies:

https://github.com/libgdx/libgdx/wiki/依赖管理与 - 摇篮

(部分:外部依赖性案例>>通用吐温引擎使用maven)

(section: External Dependencies Examples >> universal-tween-engine using maven)

做到这一点后,我检查的maven回购猪病和文件有:

After do that, i check maven repo direcory and the files are there:

C:\\用户\\ Admin.m2 \\库\\ aurelienribon \\ tweenengine \\ 6.3.3

C:\Users\Admin.m2\repository\aurelienribon\tweenengine\6.3.3

执行gradlew蝙蝠重建项目没有返回错误:

Executing gradlew bat for rebuilding the project returns no errors:

我想的东西,因为在Eclipse中没有看到吐温引擎的引用:

I'm missing something because in Eclipse didn't see the references to Tween engine:

很明显,如果我尝试对我的code添加到吐温引擎的引用我得到一个错误:

And obviously, if i try to add a reference to Tween Engine on my code i get an error:

如何建立在现有项目的gradle一个新的参考,使用libGDX在这种情况下,使用吐温引擎?

How can i set up a new reference on existing gradle project, using libGDX for using Tween Engine in this case?

推荐答案

您所做的一切都是正确的,但只是添加的依赖不会刷新依赖于蚀。

You did everything correct, but just adding the dependencies will not refresh the dependencies in eclipse.

您必须标记在Eclipse中的所有相关项目,右击它们并执行摇篮 - >刷新依赖。根据您已经改变了什么,你甚至可能需要做一个摇篮 - >全部刷新

You have to mark all related projects in eclipse, right click them and perform a Gradle -> Refresh Dependencies. Depending on what exactly you have changed, you might even need to do a Gradle -> Refresh All.

这将更新日食的依赖关系,你会发现所需的类。

This will update the dependencies in eclipse and you will find the needed classes.