Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

阿里的框架依赖不成功 微信的可以 希望作者看下 #9

Open
xionger0520 opened this issue Aug 15, 2019 · 9 comments
Open

Comments

@xionger0520
Copy link

ERROR: Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.github.javen205.JPay:AliPay:0.0.5. @Javen205

@xionger0520
Copy link
Author

Could not resolve com.github.javen205.JPay:AliPay:0.0.5.
Required by:
project :app
> Could not resolve com.github.javen205.JPay:AliPay:0.0.5.
> Could not parse POM https://jitpack.io/com/github/javen205/JPay/AliPay/0.0.5/AliPay-0.0.5.pom
> Missing required attribute: dependency groupId

@Javen205

@Javen205
Copy link
Owner

感谢反馈,引用外部 aar ,本地可以正常使用但使用 jitpack 构建后 groupId 缺少暂时不知道如何修改

@xionger0520
Copy link
Author

啥时候更新下一个版本 有解决这个问题了吗? @Javen205

@Javen205
Copy link
Owner

还没有解决 jitpackFAQ 中有提到,建议使用 Gradle Shadow or Maven Shade plugin,但我测试还是不生效,在jitpackASK 提问了但目前还没有得到回复

@CodingBingo
Copy link

我觉得这个既然有问题,建议不要放出来,免得后面其他人采坑

@Javen205
Copy link
Owner

Javen205 commented Oct 4, 2019

我觉得这个既然有问题,建议不要放出来,免得后面其他人采坑

你自己封装提供给别人使用,也是要踩这个坑的(阿里的aar没有上传至仓库)。

换一个角度说 Model (第三方库) 引用的方式有很多方式,源码方式何尝不可呢?

@WOOSpirit777
Copy link

这个问题如何解决呢

@zhazhaxin
Copy link

这个问题如何解决呢

你的 com.android.tools.build:gradle 插件和 gradle wrapper 版本是多少。高版本不兼容这个问题。换个低版本的试试

@zhangxu2814
Copy link

解决方案是:把阿里的aar上传至自己的私库 ,然后采用远程依赖的方式。
image
这种方式会生成pom文件,但是支付宝的aar并没有被打包到新的aar包中。在线等谁有更好的解决方案。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants