connectivity_plus 安卓build的时候报错

报错信息

当前版本:connectivity_plus 5.0.2
Flutter 3.13.6
Dart 3.1.3

A problem occurred configuring project ':connectivity_plus'.
> Failed to create Jar file /Users/wangxiangyu/.gradle/caches/jars-8/fef84f4f98be9f93b0b593ccb1e3e207/lint-model-31.1.2.jar.
> Failed to notify project evaluation listener.
   > Could not get unknown property 'android' for project ':connectivity_plus' of type org.gradle.api.Project.
   > Could not get unknown property 'android' for project ':connectivity_plus' of type org.gradle.api.Project.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 5s
Running Gradle task 'assembleRelease'...                            5.7s
Gradle task assembleRelease failed with exit code 1
 ELIFECYCLE  Command failed with exit code 1.

ChatGPT

参考issue 1791

// 目录:android/build.gradle
changed classpath 'com.android.tools.build:gradle:4.1.0' to classpath 'com.android.tools.build:gradle:7.0.0'
// 目录 android/gradle/wrapper/gradle-wrapper.properties
changed distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip to distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-all.zip
  • 10
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值