如何在不进行“编译”的情况下导入kryonet库:来自gradle? [英] How can I import the kryonet library without "compile: " from gradle?

查看:173
本文介绍了如何在不进行“编译”的情况下导入kryonet库:来自gradle?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试用jar文件添加kryonet库,但我不知道它是如何在android-studio,libgdx项目中正确添加的。
https://github.com/EsotericSoftware/kryonet

解决方案

我在每个依赖项中添加了编译文件('path / to / library.jar')模块和所有工作。


I try to add the kryonet library with jar file, but I don't know how it must be added correctly in android-studio, libgdx project. https://github.com/EsotericSoftware/kryonet

解决方案

I just added compile files('path/to/library.jar') in dependencies in each module and all worked.

这篇关于如何在不进行“编译”的情况下导入kryonet库:来自gradle?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆