http
http copied to clipboard
The following dependencies do not satisfy the required version: project ':jni' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10
The following error was shown when debugging flutter app on Android:
FAILURE: Build failed with an exception.
* What went wrong:
The Android Gradle plugin supports only kotlin-android-extensions Gradle plugin version 1.6.20 and higher.
The following dependencies do not satisfy the required version:
project ':jni' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10
pubspec.yaml
:
environment:
sdk: '>=3.3.4 <4.0.0'
flutter: ^3.19.6
dependencies:
flutter:
sdk: flutter
http: ^1.2.2
cronet_http: ^1.2.1
cupertino_http: ^1.4.0
flutter doctor -v
:
[✓] Flutter (Channel stable, 3.19.6, on macOS 13.6.7 22G720 darwin-x64, locale en-GB)
• Flutter version 3.19.6 on channel stable at
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 54e66469a9 (4 months ago), 2024-04-17 13:08:03 -0700
• Engine revision c4cd48e186
• Dart version 3.3.4
• DevTools version 2.31.1
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at
• Platform android-34, build-tools 34.0.0
• Java binary at:
• Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11609105)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
• Xcode at
• Build 14C18
• CocoaPods version 1.15.2
[✓] Chrome - develop for the web
• Chrome at
[✓] Android Studio (version 2024.1)
• Android Studio at
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11609105)
[✓] VS Code (version 1.92.2)
• VS Code at
• Flutter extension version 3.94.0
[✓] Network resources
• All expected network resources are available.
• No issues found!