fluttercommunity / plus_plugins

Flutter Community Plus Plugins
BSD 3-Clause "New" or "Revised" License
1.51k stars 883 forks source link

[Bug]: Incompatible classes were found in dependencies #2396

Closed PawanFyers closed 7 months ago

PawanFyers commented 7 months ago

Platform

Android 13 & above

Plugin

share_plus: any

Version

any

Flutter SDK

3.13.2

Steps to reproduce

  1. When we update the Flutter version to 3.13.2 & Gradle version to 8.1.2 & compileSdkVersion to 34
  2. Kotlin version = ext.kotlin_version = "1.9.0"

Code Sample

name: sos
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 used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html

version: 1.0.3+7

environment:
  sdk: ">=3.0.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_screenutil: ^5.7.0
  shared_preferences: any
  share_plus: any
  percent_indicator: any
  flick_video_player:
    path: plugins/flick-video-player/
  video_player:
    path: plugins/video_player_pip/video_player/
  dio: any
  flutter_bloc: ^8.1.1
  cached_network_image: ^3.2.2
  equatable: ^2.0.5
  url_strategy: ^0.2.0
  path_provider: ^2.0.11
  form_field_validator: ^1.1.0
  fluttertoast: ^8.0.8
  flutter_secure_storage: ^8.1.0
  youtube_explode_dart: ^2.0.2
  get_cubit: ^1.1.0
  hive: ^2.2.3
  hive_flutter: ^1.1.0
  flutter_html:
  lottie: ^2.1.0
  # flutter_inappwebview: any
  webview_flutter: ^4.4.2
  # google_fonts: ^3.0.1
  readmore: ^2.2.0
  flip_card: ^0.7.0
  firebase_core: any
  firebase_messaging: any
  url_launcher: ^6.1.7
  intl: ^0.18.0
  pdf: ^3.8.4
  # gallery_saver: ^2.3.2
  flutter_downloader: ^1.9.1
  permission_handler: ^11.0.1
  connectivity_plus: ^5.0.2
  flutter_svg: ^2.0.0+1
  # resolution_detector: ^2.0.2
  get_time_ago: ^1.2.1
  package_info_plus: ^4.2.0
  in_app_review: ^2.0.6
  cupertino_icons: ^1.0.2
  share_plus_web: ^3.1.0
  firebase_crashlytics: ^3.0.7
  firebase_analytics: ^10.1.1
  # moengage_flutter: ^5.3.0
  # fy_products:
  #   path: ../fy_products/
  fy_products:
    git:
      url: git@github.com-fyers:FyersDev/Flutter_Mobile_FyProducts.git
      ref: release-master
  # external_app_launcher: ^3.1.0

dependency_overrides:
  video_player:
    path: plugins/video_player_pip/video_player/
  video_player_android:
    path: plugins/video_player_pip/video_player_android/
  video_player_avfoundation:
    path: plugins/video_player_pip/video_player_avfoundation/
  video_player_platform_interface:
    path: plugins/video_player_pip/video_player_platform_interface/
  video_player_web:
    path: plugins/video_player_pip/video_player_web/
  # video_player:
  #   git:
  #     url: https://github.com/t0uh33d/video_player_pip.git
  #     ref: feature/play-back-in-pip
  #     path: video_player/
  # video_player_android:
  #   git:
  #     url: https://github.com/t0uh33d/video_player_pip.git
  #     ref: feature/play-back-in-pip
  #     path: video_player_android/
  # video_player_avfoundation:
  #   git:
  #     url: https://github.com/t0uh33d/video_player_pip.git
  #     ref: feature/play-back-in-pip
  #     path: video_player_avfoundation/
  # video_player_platform_interface:
  #   git:
  #     url: https://github.com/t0uh33d/video_player_pip.git
  #     ref: feature/play-back-in-pip
  #     path: video_player_platform_interface/
  # video_player_web:
  #   git:
  #     url: https://github.com/t0uh33d/video_player_pip.git
  #     ref: feature/play-back-in-pip
  #     path: video_player_web/

dev_dependencies:
  flutter_test:
    sdk: flutter

  flutter_lints: any
  # for hive
  hive_generator: ^2.0.0
  build_runner: ^2.3.2
  firebase_analytics_platform_interface: any
  firebase_messaging_platform_interface: any
  firebase_crashlytics_platform_interface: any

# 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/lottie/loader.json
    - assets/lottie/splash_screen.json
    - assets/imgs/community_screen/
    - assets/imgs/course_screen/
    - assets/imgs/home_screen/
    - assets/imgs/onboard_screen/
    - assets/imgs/quiz_screen/
    - assets/imgs/profile_screen/

  # 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: Poppins
      fonts:
        - asset: fonts/Poppins-Thin.ttf
          weight: 100
        - asset: fonts/Poppins-ExtraLight.ttf
          weight: 200
        - asset: fonts/Poppins-Light.ttf
          weight: 300
        - asset: fonts/Poppins-Regular.ttf
          weight: 400
        - asset: fonts/Poppins-Medium.ttf
          weight: 500
        - asset: fonts/Poppins-SemiBold.ttf
          weight: 600
        - asset: fonts/Poppins-Bold.ttf
          weight: 700
        - asset: fonts/Poppins-ExtraBold.ttf
          weight: 800
  # For details regarding fonts from package dependencies,
  # see https://flutter.dev/custom-fonts/#from-packages

Logs

Launching lib/main.dart on sdk gphone64 arm64 in debug mode...
e: Incompatible classes were found in dependencies. Remove them from the classpath or use '-Xskip-metadata-version-check' to suppress errors
e: /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.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.8.0, expected version is 1.6.0.
e: /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.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.8.0, expected version is 1.6.0.
e: /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.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.8.0, expected version is 1.6.0.
e: /Users/pawanshahani/.gradle/caches/transforms-3/5a30831f5ab67443de9f738997e77982/transformed/jetified-core-ktx-1.10.1-api.jar!/META-INF/core-ktx_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
e: /Users/pawanshahani/.gradle/caches/transforms-3/994b8755800edb83478d0e139c05acb2/transformed/core-1.10.1-api.jar!/META-INF/core_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
e: /Users/pawanshahani/.gradle/caches/transforms-3/a406e97684991b3a4ffa1e8b5e735939/transformed/jetified-kotlin-stdlib-common-1.8.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.8.0, expected version is 1.6.0.
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/MethodCallHandler.kt: (16, 45): Unresolved reference: endsWith
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/MethodCallHandler.kt: (20, 9): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/MethodCallHandler.kt: (22, 17): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/MethodCallHandler.kt: (23, 23): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/MethodCallHandler.kt: (29, 28): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/MethodCallHandler.kt: (33, 17): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/MethodCallHandler.kt: (37, 23): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/MethodCallHandler.kt: (44, 21): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/MethodCallHandler.kt: (45, 32): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/MethodCallHandler.kt: (47, 32): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/MethodCallHandler.kt: (52, 17): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/MethodCallHandler.kt: (56, 17): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/MethodCallHandler.kt: (57, 27): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/MethodCallHandler.kt: (66, 25): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/MethodCallHandler.kt: (67, 36): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/MethodCallHandler.kt: (69, 36): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/MethodCallHandler.kt: (73, 28): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/MethodCallHandler.kt: (76, 28): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/MethodCallHandler.kt: (80, 6): Class 'kotlin.jvm.Throws' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/jvm/Throws.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/MethodCallHandler.kt: (82, 9): Unresolved reference: require
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (24, 46): Unresolved reference: lazy
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (34, 49): Unresolved reference: lazy
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (55, 14): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (59, 36): Unresolved reference: apply
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (60, 13): Unresolved reference: action
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (61, 13): Unresolved reference: type
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (62, 13): Unresolved reference: putExtra
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (63, 13): Unresolved reference: putExtra
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (74, 67): Unresolved reference: java
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (81, 9): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (84, 6): Class 'kotlin.jvm.Throws' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/jvm/Throws.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (92, 9): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (96, 42): Unresolved reference: isNullOrBlank
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (97, 17): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (97, 23): Type mismatch: inferred type is String? but String was expected
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (101, 47): Unresolved reference: isNullOrEmpty
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (102, 31): Unresolved reference: first
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (106, 29): Unresolved reference: apply
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (107, 21): Unresolved reference: action
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (108, 21): Unresolved reference: type
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (109, 21): Unresolved reference: putExtra
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (113, 29): Unresolved reference: apply
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (114, 21): Unresolved reference: action
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (115, 21): Unresolved reference: type
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (116, 21): Unresolved reference: putParcelableArrayListExtra
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (132, 67): Unresolved reference: java
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (142, 21): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (144, 32): Cannot infer a type for this parameter. Please specify it explicitly.
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (145, 30): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (152, 9): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (156, 9): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (157, 13): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (158, 28): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (160, 28): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (166, 25): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (168, 21): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (172, 6): Class 'kotlin.jvm.Throws' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/jvm/Throws.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (173, 55): Unresolved reference: ArrayList
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (174, 20): Unresolved reference: ArrayList
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (175, 15): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (193, 49): Unresolved reference: first
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (195, 36): Unresolved reference: first
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (196, 15): Class 'kotlin.collections.IntIterator' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/collections/IntIterator.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (196, 16): Class 'kotlin.ranges.IntRange' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/ranges/IntRange.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (196, 28): Unresolved reference: lastIndex
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (198, 9): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (213, 50): Unresolved reference: contains
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (216, 22): Unresolved reference: substring
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (216, 44): Unresolved reference: indexOf
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (223, 22): Unresolved reference: startsWith
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (232, 39): Unresolved reference: isNullOrEmpty
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (233, 19): Unresolved reference: forEach
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (233, 29): Unresolved reference: it
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (238, 6): Class 'kotlin.jvm.Throws' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/jvm/Throws.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt: (245, 14): Unresolved reference: copyTo
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/SharePlusPendingIntent.kt: (28, 91): Unresolved reference: java
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/SharePlusPendingIntent.kt: (36, 13): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/SharePlusPlugin.kt: (16, 9): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/SharePlusPlugin.kt: (17, 9): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/SharePlusPlugin.kt: (18, 9): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/SharePlusPlugin.kt: (20, 23): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/SharePlusPlugin.kt: (24, 23): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/SharePlusPlugin.kt: (28, 17): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/SharePlusPlugin.kt: (29, 15): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/SharePlusPlugin.kt: (33, 15): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/SharePlusPlugin.kt: (37, 9): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/SharePlusPlugin.kt: (41, 9): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/ShareSuccessManager.kt: (23, 36): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/ShareSuccessManager.kt: (24, 26): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/ShareSuccessManager.kt: (25, 18): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/ShareSuccessManager.kt: (28, 22): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/ShareSuccessManager.kt: (41, 9): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/ShareSuccessManager.kt: (49, 24): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/ShareSuccessManager.kt: (50, 13): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class
e: /Users/pawanshahani/.pub-cache/hosted/pub.dev/share_plus-7.2.1/android/src/main/kotlin/dev/fluttercommunity/plus/share/ShareSuccessManager.kt: (60, 13): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from /Users/pawanshahani/.gradle/caches/transforms-3/21f41bebe75aea6f7014a08abcd49d63/transformed/jetified-kotlin-stdlib-1.8.10.jar!/kotlin/Unit.class

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':share_plus:compileDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
   > Compilation error. See log for more details

* 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
┌─ 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/pawanshahani/Desktop/mobile_sos/android/build.gradle:                        │
│ ext.kotlin_version = '<latest-version>'                                                    │
└────────────────────────────────────────────────────────────────────────────────────────────┘
Exception: Gradle task assembleDebug failed with exit code 1
Exited

Flutter Doctor

Doctor summary (to see all details, run flutter doctor -v):
[!] Flutter (Channel stable, 3.13.2, on macOS 14.1 23B74 darwin-arm64, locale en-IN)
    ! Warning: `dart` on your path resolves to /opt/homebrew/Cellar/dart/2.18.4/libexec/bin/dart, which is not inside your current Flutter SDK checkout at /Users/pawanshahani/fvm/3.13.2. Consider adding /Users/pawanshahani/fvm/3.13.2/bin to the front of your path.
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0-rc4)
[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.3)
[✓] VS Code (version 1.84.2)
[✓] Connected device (3 available)
[✓] Network resources

! Doctor found issues in 1 category.

Checklist before submitting a bug

vbuberen commented 7 months ago

It happens due to Kotlin 1.9.0. It was discussed already in other issues: https://github.com/fluttercommunity/plus_plugins/issues/2284 https://github.com/fluttercommunity/plus_plugins/issues/2018

Configure your build.gradle of the project with correct resolution strategy for Kotlin versions. After recent issues with latest Kotlin Plus Plugins will stick with older versions of Kotlin for better compatibility.

Please do really use search before opening an issue instead of just checking a checkmark.