导入.aar模块的版本在发布到jitpack.io时会更改

时间:2019-04-03 06:05:44

标签: android android-library aar jitpack

我想将我的库发布到jitpack.io,关于我的项目的内容如下:

我有3个libs模块,分别称为basecorestream,如下所示:

  • core依赖于base
  • stream依赖于base
  • core需要依赖于导入的.aar模块,在我的示例中是mux-r.2.8.0the integration guide here

使用api project(':lib_name')在本地成功构建了这些库,但是,发布到jitpack之后,似乎像其他库模块一样,已导入的aar的模块已更改版本。错误显示如下:

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.github.huunam1108:mux-r2.8.0:5.0.1_BETA.
Show Details
Affected Modules: app


ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.github.huunam1108:mux-r2.8.0:5.0.1_BETA.
Show Details
Affected Modules: app


ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.github.huunam1108:mux-r2.8.0:5.0.1_BETA.
Show Details
Affected Modules: app


ERROR: Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.github.huunam1108:mux-r2.8.0:5.0.1_BETA.
Show Details
Affected Modules: app


ERROR: Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.github.huunam1108:mux-r2.8.0:5.0.1_BETA.
Show Details
Affected Modules: app

因此,我可以保留导入模块aar的版本而不进行更改吗? (不是mux-r2.8.0:5.0.1_BETA)?

如何使用导入的外部.aar库到我的库中?

谢谢!

0 个答案:

没有答案