【发布时间】:2014-03-28 03:14:15
【问题描述】:
我想在我的 android 项目中尝试这个 library。我正在使用 Android Studio 0.4.6。
README.markdown 文件告诉我将其插入 pom.xml:
<!-- in the 'repositories' section -->
<repository>
<id>keytwo.net</id>
<name>Keytwo.net Repository</name>
<url>http://audiobox.keytwo.net</url>
</repository>
<!-- in the 'dependencies' section -->
<dependency>
<groupId>io.socket</groupId>
<artifactId>socket.io-client</artifactId>
<version>0.2.1</version> <!-- the desidered version -->
</dependency>
问题是我没有任何pom.xml。我在我的项目根目录中创建了一个并同步了 gradle 设置,但它什么也没做。到目前为止,我只使用了已经编译好的 .jar 文件或者使用了 gradle compile 函数。
如何在我的项目中使用这个库?
【问题讨论】:
标签: java android maven gradle android-studio