-
Notifications
You must be signed in to change notification settings - Fork 50
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
Direct local .aar file dependencies are not supported when building an AAR. #18
Comments
same issue |
I'm also the one who reported the mistake |
Modify Android/ build.gradle 'dependencies classpath |
我也碰到了,但是gradle 又只能4.0.1 用了react-native-crop-image 这咋办? @wulaizi |
参考这个:https://stackoverflow.com/a/63665094/6880617 更新: |
@jaywcjlove 小弟调调™ 我看仓库里的 example 并没有修改 |
@GreatAuk 是我测试用例,在我们 项目 中使用没有问题的样子 |
@jaywcjlove 我下载了 example , android 打包 |
我自己项目每次都升级到 react 初始化工程的默认版本 当前工程是边开发边测试,所以示例里面使用 "@uiw/react-native-alipay": "link:../", |
@jaywcjlove 目前找到了这个方案 https://stackoverflow.com/a/60888941/6880617,或许可以参考下。不会 android 原生,所以搜索到的方案一直感觉不得要领 |
RN 安装 |
@meiqi1992 问下这个问题有解决吗 |
@GreatAuk 我把 SDK 也升级了, Upgrade |
react-native-alipay/android/build.gradle Line 36 in a907392
|
@jaywcjlove 确认还是报一样的错 |
@GreatAuk 示例必须降到 3.5.3 才能兼容所有? |
对的,你自己也可以打包试下,就仓库里面的 example 项目(我只是把 package.json 里面的 |
@GreatAuk 前面几版本都是有测试,我们的产品上线之后,改动不大的,我都只测试了iOS |
@GreatAuk 这个问题你解决了吗,我还没解决 升级到4.0.0-beta.1 还是一样的问题 |
@meiqi1992 |
https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-native-alipay/file/package.json 使用的时候 @uiw/react-native-alipay 组件安装不会有
|
@justjavac 还是改成implementation (name: 'alipaysdk-15.8.03.210428205839', ext: 'aar')吧,真有问题 |
https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/[email protected]/file/android/build.gradle // 支付宝 SDK AAR 包所需的配置
// implementation (name: 'alipaysdk-15.8.03.210428205839', ext: 'aar')
implementation fileTree(dir: "libs", include: ["*.aar"]) react-native-alipay/android/build.gradle Lines 77 to 79 in a907392
@lxp-git 这两种方式有什么区别? |
@jaywcjlove 现在gradle4发不了release |
gradle4 只支持 |
@jaywcjlove 不是只支持啊,看报错提示的意思好像是模块不能直接依赖arr,会导致resource资源出问题? 具体不知道你可以试试,我这边改了然后编译过了😂能用就行 |
@lxp-git 欢迎提交 PR |
@jaywcjlove 光是改插件还不行,要把依赖包加载app模块里面,或者在project的allprojects里面写上flatDir { dirs "$rootDir/../node_modules/@uiw/react-native-alipay/android/libs" },这两个方案吧。🤣白嫖了帮助下后面白嫖的吧 |
目前的解决方案:
|
@k55k32 你这个是 |
0.64.1 @jaywcjlove |
@k55k32 可以不在 项目工程中添加任何配置,就可以使用的方法? |
@jaywcjlove 不太清楚,现在已经不用这个依赖了, 我们自己集成了一下,因为要使用支付宝的其他包,有依赖冲突 |
Co-authored-by: seven <[email protected]>
When I build the apk , there is error .
Direct local .aar file dependencies are not supported when building an AAR. The resulting AAR would be broken because the classes and Android resources from any local .aar file dependencies would not be packaged in the resulting AAR. Previous versions of the Android Gradle Plugin produce broken AARs in this case too (despite not throwing this error). The following direct local .aar file dependencies of the :uiw_react-native-alipay project caused this error: C:\Users\username\AwesomeProject\node_modules@uiw\react-native-alipay\android\libs\alipaySdk-15.7.9-20200727142846.aar
The text was updated successfully, but these errors were encountered: