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

你可能感兴趣的:(#,移动端,#,fullter,android)