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

萝らか妹 提交于 2019-12-08 09:55:01

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/23314348/update-gradle-references-to-include-maven-local-jars-libgdx-tween-engine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!