flutter版本:Flutter stable, 3.19.3
gradle版本
在安卓工程settings.gradle中添加了以下代码
报错信息:
Caused by: org.gradle.api.InvalidUserCodeException: Build was configured to prefer settings repositories over project repositories but repository ‘maven’ was added by plugin class ‘FlutterPlugin’
You are applying Flutter’s main Gradle plugin imperatively using the apply script method, which is deprecated and will be removed in a future release. Migrate to applying Gradle plugins with the declarative plugins block: https://flutter.dev/go/flutter-gradle-plugin-apply
解锁Flutter开发新姿势,,系统掌握Flutter开发核心技术。
了解课程