Replies: 1 comment
-
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Bug
Body
this is the error "Launching lib/main.dart on sdk gphone64 arm64 in debug mode...
: Incompatible classes were found in dependencies. Remove them from the classpath or use '-Xskip-metadata-version-check' to suppress errors
e: /Users/alaaabdalqader/.gradle/caches/transforms-3/a800064d6fc3bbb6acf2ee2b427c2a31/transformed/jetified-kotlin-stdlib-common-1.9.10.jar!/META-INF/kotlin-stdlib-common.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.
e: /Users/alaaabdalqader/.gradle/caches/transforms-3/f54c5fb57b90d560ab3726a96e6b8f8b/transformed/jetified-kotlin-stdlib-1.9.10.jar!/META-INF/kotlin-stdlib-jdk7.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.
e: /Users/alaaabdalqader/.gradle/caches/transforms-3/f54c5fb57b90d560ab3726a96e6b8f8b/transformed/jetified-kotlin-stdlib-1.9.10.jar!/META-INF/kotlin-stdlib-jdk8.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.
e: /Users/alaaabdalqader/.gradle/caches/transforms-3/f54c5fb57b90d560ab3726a96e6b8f8b/transformed/jetified-kotlin-stdlib-1.9.10.jar!/META-INF/kotlin-stdlib.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.
e: /Users/alaaabdalqader/.pub-cache/hosted/pub.dev/flutter_tts-4.0.2/android/src/main/kotlin/com/tundralabs/fluttertts/FlutterTtsPlugin.kt: (44, 38): Unresolved reference: ArrayList
e: /Users/alaaabdalqader/.pub-cache/hosted/pub.dev/flutter_tts-4.0.2/android/src/main/kotlin/com/tundralabs/fluttertts/FlutterTtsPlugin.kt: (45, 30): Unresolved reference: HashMap
e: /Users/alaaabdalqader/.pub-cache/hosted/pub.dev/flutter_tts-4.0.2/android/src/main/kotlin/com/tundralabs/fluttertts/FlutterTtsPlugin.kt: (63, 14): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.
The class is loaded from /Users/alaaabdalqader/.gradle/caches/transforms-3/f54c5fb57b90d560ab3726a96e6b8f8b/transformed/jetified-kotlin-stdlib-1.9.10.jar!/kotlin/Unit.class
e: /Users/alaaabdalqader/.pub-cache/hosted/pub.dev/flutter_tts-4.0.2/android/src/main/kotlin/com/tundralabs/fluttertts/FlutterTtsPlugin.kt: (64, 9): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.
The class is loaded from /Users/alaaabdalqader/.gradle/caches/transforms-3/f54c5fb57b90d560ab3726a96e6b8f8b/transformed/jetified-kotlin-stdlib-1.9.10.jar!/kotlin/Unit.class
e: /Users/alaaabdalqader/.pub-cache/hosted/pub.dev/flutter_tts-4.0.2/android/src/main/kotlin/com/tundralabs/fluttertts/FlutterTtsPlugin.kt: (65, 25): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.
The class is loaded from /Users/alaaabdalqader/.gradle/caches/transforms-3/f54c5fb57b90d560ab3726a96e6b8f8b/transformed/jetified-kotlin-stdlib-1.9.10.jar!/kotlin/Unit.class
e: /Users/alaaabdalqader/.pub-cache/hosted/pub.dev/flutter_tts-4.0.2/android/src/main/kotlin/com/tundralabs/fluttertts/FlutterTtsPlugin.kt: (66, 9): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.
The class is loaded from /Users/alaaabdalqader/.gradle/caches/transforms-3/f54c5fb57b90d560ab3726a96e6b8f8b/transformed/jetified-kotlin-stdlib-1.9.10.jar!/kotlin/Unit.class
e: /Users/alaaabdalqader/.pub-cache/hosted/pub.dev/flutter_tts-4.0.2/android/src/main/kotlin/com/tundralabs/fluttertts/FlutterTtsPlugin.kt: (67, 9): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.
The class is loaded from /Users/alaaabdalqader/.gradle/caches/transforms-3/f54c5fb57b90d560ab3726a96e6b8f8b/transformed/jetified-kotlin-stdlib-1.9.10.jar!/kotlin/Unit.class
e: /Users/alaaabdalqader/.pub-cache/hosted/pub.dev/flutter_tts-4.0.2/android/src/main/kotlin/com/tundralabs/fluttertts/FlutterTtsPlugin.kt: (68, 9): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.
The class is loaded from /Users/alaaabdalqader/.gradle/caches/transforms-3/f54c5fb57b90d560ab3726a96e6b8f8b/transformed/jetified-kotlin-stdlib-1.9.10.jar!/kotlin/Unit.class
e: /Users/alaaabdalqader/.pub-cache/hosted/pub.dev/flutter_tts-4.0.2/android/src/main/kotlin/com/tundralabs/fluttertts/FlutterTtsPlugin.kt: (73, 9): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.
The class is loaded from /Users/alaaabdalqader/.gradle/caches/transforms-3/f54c5fb57b90d560ab3726a96e6b8f8b/transformed/jetified-kotlin-stdlib-1.9.10.jar!/kotlin/Unit.class
e: /Users/alaaabdalqader/.pub-cache/hosted/pub.dev/flutter_tts-4.0.2/android/src/main/kotlin/com/tundralabs/fluttertts/FlutterTtsPlugin.kt: (77, 9): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1. The class is loaded from /Users/alaaabdalqader/.gradle/caches/transforms-3/f54c5fb57b90d560ab3726a96e6b8f8b/transformed/jetified-kotlin-stdlib-1.9.10.jar!/kotlin/Unit.class
FAILURE: Build failed with an exception.
Execution failed for task ':flutter_tts:compileDebugKotlin'.
BUILD FAILED in 13s
┌─ Flutter Fix ──────────────────────────────────────────────────────────────────────────────┐
│ [!] Your project requires a newer version of the Kotlin Gradle plugin. │
│ Find the latest version on https://kotlinlang.org/docs/releases.html#release-details, then │
│ update /Users/alaaabdalqader/Desktop/Talebulider-1/android/build.gradle: │
│ ext.kotlin_version = '' │
└────────────────────────────────────────────────────────────────────────────────────────────┘
Error: Gradle task assembleDebug failed with exit code 1"
this is my gradle file
"buildscript {
ext.kotlin_version = '2.0.0'
}
plugins {
id "com.android.application"
id "kotlin-android"
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
id "dev.flutter.flutter-gradle-plugin"
}
def localProperties = new Properties()
def localPropertiesFile = rootProject.file("local.properties")
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader("UTF-8") { reader ->
localProperties.load(reader)
}
}
def flutterVersionCode = localProperties.getProperty("flutter.versionCode")
if (flutterVersionCode == null) {
flutterVersionCode = "1"
}
def flutterVersionName = localProperties.getProperty("flutter.versionName")
if (flutterVersionName == null) {
flutterVersionName = "1.0"
}
android {
namespace = "com.example.tale"
compileSdk = flutter.compileSdkVersion
ndkVersion = "25.1.8937393"
}
flutter {
source = "../.."
}
"
this is yaml "name: tale
description: "A new Flutter project."
The following line prevents the package from being accidentally published to
pub.dev using
flutter pub publish
. This is preferred for private packages.publish_to: 'none' # Remove this line if you wish to publish to pub.dev
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 is used as CFBundleVersion.
Read more about iOS versioning at
https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
In Windows, build-name is used as the major, minor, and patch parts
of the product and file versions while build-number is used as the build suffix.
version: 1.0.0+1
environment:
sdk: '>=3.3.0 <4.0.0'
Dependencies specify other packages that your package needs in order to work.
To automatically upgrade your package dependencies to the latest versions
consider running
flutter pub upgrade --major-versions
. Alternatively,dependencies can be manually updated by changing the version numbers below to
the latest version available on pub.dev. To see which dependencies have newer
versions available, run
flutter pub outdated
.dependencies:
flutter:
sdk: flutter
flutter_gemini: ^2.0.4
image_picker: ^1.1.2
dash_chat_2: ^0.0.21
The following adds the Cupertino Icons font to your application.
Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.8
firebase_core: ^2.30.1
uuid: ^4.4.0
firebase_auth: ^4.17.9
cloud_firestore: ^4.14.0
flutter_launcher_icons: ^0.13.1
flutter_svg: ^2.0.10+1
shared_preferences: ^2.2.3
rive: ^0.13.7
file_picker: ^8.0.0+1
syncfusion_flutter_pdf: ^26.1.38
flutter_pdfview: ^1.3.2
flutter_tts: ^4.0.2
pdf: ^3.10.8
pdfx: ^2.6.0
flutter_js: ^0.8.1
get: ^4.6.6
permission_handler: ^11.3.1
just_audio: ^0.9.38
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 yourpackage. See that file for information about deactivating specific lint
rules and activating additional ones.
flutter_lints: ^4.0.0
For information on the generic Dart part of this file, see the
following page: https://dart.dev/tools/pub/pubspec
The following section is specific to Flutter packages.
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 assets to your application, add an assets section, like this:
assets:
- assets/images/
- images/a_dot_ham.jpeg
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 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: Trocchi
fonts:
- asset: assets/fonts/Trocchi-Regular.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
"
After run flutter doctor
"Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.22.2, on macOS 14.0 23A344 darwin-arm64,
locale en-JO)
[✓] Android toolchain - develop for Android devices (Android SDK version
35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.3)
[✓] VS Code (version 1.90.2)
[✓] Connected device (5 available)
[✓] Network resources"
I tried so hard to solve it by changing the version of Kotlin and other things, but it didn't work.
Beta Was this translation helpful? Give feedback.
All reactions