How to add external library dependency to libgdx project?

╄→尐↘猪︶ㄣ 提交于 2019-12-11 14:48:12

问题


I am trying to add a simple library like json.org to my libgdx project. The dependencies were properly configured in the gradle file. The project is not compiling any longer. I think the problem is because the GWT compiler is not able to find the source code. Did this happen to someone else before? Any possible solution? Thanks.


回答1:


What errors are you getting ?

Try to issue the command from the command line:

gradlew --refresh-dependencies

Got this one from the Universal Tween Engine installation page, probably can help your case. From the page text:

And most importantly you now need to refresh your project dependencies through your IDE or by running the following command from your project directory:



来源:https://stackoverflow.com/questions/26340456/how-to-add-external-library-dependency-to-libgdx-project

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