34
我想在我的android项目中尝试使用这个library。我正在使用Android Studio 0.4.6。使用maven资源库将java库添加到Android Studio项目
的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编译功能。
如何在我的项目中使用此库?
谢谢。这是一个非常明确的答案:) – letiagoalves
@Scott Barta。那么,Android Studio中的Maven的主要目的是什么?在什么情况下,Maven是必须的选择? – rxlky
@Halim它不使用Maven作为构建器,但Gradle使用一些小部件,比如能够下载POM格式的依赖关系,这就是所谓的。 –