Build library Github with Jitpack include dependencies

时间:2018-09-19 08:17:28

标签: android github jitpack

I'm building a library with jitpack.io I was able to build and compile into the application successfully, but the problem here is that in the library there includes a number of other libraries compiled into

 implementation 'com.google.android.gms:play-services-ads:15.0.0'
 implementation 'com.google.android.gms:play-services-location:15.0.0'
 implementation 'com.facebook.android:audience-network-sdk:4.99.1'
 implementation 'com.appnext.sdk:banners:2.4.2.472'
 implementation 'com.appnext.sdk:ads:2.4.2.472'
 implementation 'com.appnext.sdk:native-ads2:2.4.2.472'
 implementation 'org.jsoup:jsoup:1.11.3'

so when I compiled the library into my application and called it, it reportedly did not find the class I was including into libraries(org.jsoup., com.appnext., ..). If I want to use I have to re-declare the libraries on again in my application. Is there a way to not do this, as includes the library inside

1 个答案:

答案 0 :(得分:1)

我遇到了同样的问题,显然这是maven gradle插件v1.5中的一个错误;我的插件版本更新到2.1后,问题解决了。

问题:https://github.com/dcendents/android-maven-gradle-plugin/issues/61

相关答案:https://stackoverflow.com/a/51190164/1640033