flutter 运行报错
* What went wrong:
The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher.
The following dependencies do not satisfy the required version:
project ':image_gallery_saver' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.72
* 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 13s
Running Gradle task 'assembleDebug'... 14.4s
Exception: Gradle task assembleDebug failed with exit code 1
/android/build.gradle
group 'com.ricoh360.thetaclient.theta_client_flutter'
version '1.0.0'
buildscript {
ext.kotlin_version = '1.6.10'
repositories {
//google
maven { url 'https://maven.aliyun.com/repository/google' }
//central仓和jcenter仓的聚合仓
maven { url 'https://maven.aliyun.com/repository/public' }
//gradle-plugin
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
mavenCentral()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.1.2'
// classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
//google
maven { url 'https://maven.aliyun.com/repository/google' }
//central仓和jcenter仓的聚合仓
maven { url 'https://maven.aliyun.com/repository/public' }
//gradle-plugin
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
mavenCentral()
google()
}
}
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
android {
compileSdkVersion 31
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
defaultConfig {
minSdkVersion 19
}
}
dependencies {
implementation("io.ktor:ktor-client-core:2.1.2")
implementation("io.ktor:ktor-client-cio:2.1.2")
implementation("io.ktor:ktor-client-content-negotiation:2.1.2")
implementation("io.ktor:ktor-client-logging:2.1.2")
implementation("io.ktor:ktor-serialization-kotlinx-json:2.1.2")
implementation("com.ricoh360.thetaclient:theta-client:1.0.0")
}
pubspec.yaml文件
name: testt
description: A new Flutter project.
# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
#
# This version is used _only_ for the Runner app, which is used if you just do
# a `flutter run` or a `flutter make-host-app-editable`. It has no impact
# on any other native host app that you embed your Flutter project into.
version: 1.0.0+1
environment:
sdk: '>=2.19.3 <3.0.0'
dependencies:
flutter:
sdk: flutter
theta_client_flutter:
path: ./packages/theta_client_flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.2
video_player: ^2.4.10
panorama: ^0.4.1
flutter_boost:
git:
url: 'https://github.com/alibaba/flutter_boost.git'
ref: '4.2.1'
# #图片保存到本地相册
image_gallery_saver: ^1.7.1
# #权限申请
permission_handler: ^10.2.0
# #dio 网络请求
dio: ^5.0.3
# #弹框提醒
fluttertoast: ^8.2.1
# #图片浏览查看
photo_view: ^0.14.0
path_provider: ^2.0.14
flutter_svg: ^2.0.4
image: ^4.0.15
audioplayers: ^3.0.1
flutter_spinkit: ^5.1.0
flutter_smart_dialog: ^4.9.0+4
dev_dependencies:
flutter_test:
sdk: flutter
# The "flutter_lints" package below contains a set of recommended lints to
# encourage good coding practices. The lint set provided by the package is
# activated in the `analysis_options.yaml` file located at the root of your
# package. See that file for information about deactivating specific lint
# rules and activating additional ones.
flutter_lints: ^2.0.0
pigeon: ^1.0.19
flutter_boost:
git:
url: 'https://github.com/alibaba/flutter_boost.git'
ref: '4.2.1'
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
flutter:
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true
# To add Flutter specific assets to your application, add an assets section,
# like this:
assets:
- images/
- assets/images/blurBackground.png
- assets/images/circular.png
- assets/images/stopwatch.png
- assets/images/kong_stopwatc.png
- assets/sounds/
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware
# For details regarding adding assets from package dependencies, see
# https://flutter.dev/assets-and-images/#from-packages
# To add Flutter specific custom fonts to your application, add a fonts
# section here, in this "flutter" section. Each entry in this list should
# have a "family" key with the font family name, and a "fonts" key with a
# list giving the asset and other descriptors for the font. For
# example:
# fonts:
# - family: Schyler
# fonts:
# - asset: fonts/Schyler-Regular.ttf
# - asset: fonts/Schyler-Italic.ttf
# style: italic
# - family: Trajan Pro
# fonts:
# - asset: fonts/TrajanPro.ttf
# - asset: fonts/TrajanPro_Bold.ttf
# weight: 700
#
# For details regarding fonts from package dependencies,
# see https://flutter.dev/custom-fonts/#from-packages
# This section identifies your Flutter project as a module meant for
# embedding in a native host app. These identifiers should _not_ ordinarily
# be changed after generation - they are used to ensure that the tooling can
# maintain consistency when adding or modifying assets and plugins.
# They also do not have any bearing on your native host application's
# identifiers, which may be completely independent or the same as these.
module:
androidX: true
androidPackage: com.example.testt
iosBundleIdentifier: com.example.testt
flutter_intl:
enabled: true
各位大哥帮忙看看我这是什么错误,咋解决呀