简体   繁体   中英

Update Gradle references to include maven local jars (libGDX & Tween Engine)

I follow this steps for setting External dependencies:

https://github.com/libgdx/libgdx/wiki/Dependency-management-with-Gradle

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

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

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

在此处输入图片说明

Executing gradlew bat for rebuilding the project returns no errors:

在此处输入图片说明

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

在此处输入图片说明

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

在此处输入图片说明

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM