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

gradle编译错误 #20

Open
tom0gao opened this issue Nov 12, 2020 · 3 comments
Open

gradle编译错误 #20

tom0gao opened this issue Nov 12, 2020 · 3 comments

Comments

@tom0gao
Copy link

tom0gao commented Nov 12, 2020

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 :alipay_kit project caused this error: /Users/hhyy/.pub-cache/hosted/pub.flutter-io.cn/alipay_kit-1.1.0/android/libs/alipaySdk-15.7.6-20200521195109.aar

@droplet-js
Copy link
Collaborator

不建议将 gradle 升级到 4.x 版本,官方目前的 gradle 在 4.x 上有兼容问题

@tom0gao
Copy link
Author

tom0gao commented Nov 17, 2020

目前在源码中把配置修改为
// v15.7.6
compileOnly fileTree(include: ['.jar', '.aar'], dir: 'libs')
然后把aar拷进自己项目
implementation fileTree(include: ['.jar', '.aar'], dir: 'libs')

@droplet-js
Copy link
Collaborator

droplet-js commented Nov 17, 2020

alipay_kit: ^1.1.1 发布前的检查项还没时间去弄,先用 git 方式吧

dependencies:
  alipay_kit:
    git:
      url: https://github.com/v7lin/alipay_kit.git
      ref: 993d88c8a42236e262c0ebc38caf5cdb1ecd84c0

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

No branches or pull requests

2 participants