在android项目中包含gturri android xml rpc库

我需要包括这个库,但我有几个问题。 github上的项目库

我试图按照github项目的说明,但他们不适合我。 我必须在android studio中包含该库。

我试图:1)复制我的项目中的整个代码,但我有很多关于包的冲突,并且,一旦解决,我开始有缺乏未定义的function的问题2)我试图使用mvn install命令,但它没有工作,显示100个错误显示3)我试图用intelliJ打开该项目然后我试图导出jar文件,但intelliJ告诉它这是一个android项目

有没有人知道包含这个库的程序? 非常感谢提前

你可以尝试一下Jitpack。 至少它对我有用..

见https://jitpack.io/

实质上:将以下代码添加到项目的build.gradle文件中:

allprojects { repositories { jcenter() maven { url "https://jitpack.io" } } } 

并将以下行添加到应用程序的build.gradle文件中的dependencies部分:

 `compile 'com.github.gturri:aXMLRPC:master-SNAPSHOT'` 

这是依赖部分对我来说的样子:

 dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.4.0' compile 'com.android.support:design:23.4.0' compile 'com.github.gturri:aXMLRPC:master-SNAPSHOT' compile 'com.android.support:support-v4:23.4.0' 

}