Arkadaşlar merhaba benim bir projem var Flutterın 1.5.2 versiyonunda düzgün olarak çalışıyor ancak en güncel versiyona geçtiğim zaman hata alıyorum. Hatayı buraya bırakıyorum. Sanırım flutter_network_image kütüphanesiyle veya Imagelerle bir problemim var yardımcı olabilirseniz çok sevinirim.
FAILURE: Build failed with an exception.
What went wrong:
The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.10 and higher.
The following dependencies do not satisfy the required version:
project ‘:barcode_scan’ -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.51
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
BU�LD FAILED in 2s
Running Gradle task ‘assembleDebug’…
Running Gradle task ‘assembleDebug’… Done 3,6s
Compiler message:
../../AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/flutter_advanced_networkimage-0.3.14/lib/flutter_advanced_networkimage.dart:83:24: Error: The method ‘AdvancedNetworkImage.load’ has fewer positional arguments than
those of overridden method ‘ImageProvider.load’.
ImageStreamCompleter load(AdvancedNetworkImage key) {
^
/C:/src/flutter/packages/flutter/lib/src/painting/image_provider.dart:564:24: Context: This is the overridden method (‘load’).
ImageStreamCompleter load(T key, DecoderCallback decode);
^
../../AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/flutter_advanced_networkimage-0.3.14/lib/flutter_advanced_networkimage.dart:87:29: Error: The argument type ‘Null Function(StringBuffer)’ can’t be assigned to the
parameter type ‘Iterable<DiagnosticsNode> Function()’.
- ‘StringBuffer’ is from ‘dart:core’.
- ‘Iterable’ is from ‘dart:core’.
- ‘DiagnosticsNode’ is from ‘package:flutter/src/foundation/diagnostics.dart’ (‘/C:/src/flutter/packages/flutter/lib/src/foundation/diagnostics.dart’).
informationCollector: (StringBuffer information) {
^
../../AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/flutter_advanced_networkimage-0.3.14/lib/transition_to_image.dart:215:33: Error: The argument type ‘dynamic Function(ImageInfo, bool)’ can’t be assigned to the
parameter type ‘ImageStreamListener’.
- ‘ImageInfo’ is from ‘package:flutter/src/painting/image_stream.dart’ (‘/C:/src/flutter/packages/flutter/lib/src/painting/image_stream.dart’).
- ‘ImageStreamListener’ is from ‘package:flutter/src/painting/image_stream.dart’ (‘/C:/src/flutter/packages/flutter/lib/src/painting/image_stream.dart’).
imageStream.removeListener(updateImage);
^
../../AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/flutter_advanced_networkimage-0.3.14/lib/transition_to_image.dart:226:36: Error: The argument type ‘dynamic Function(ImageInfo, bool)’ can’t be assigned to the
parameter type ‘ImageStreamListener’.
- ‘ImageInfo’ is from ‘package:flutter/src/painting/image_stream.dart’ (‘/C:/src/flutter/packages/flutter/lib/src/painting/image_stream.dart’).
- ‘ImageStreamListener’ is from ‘package:flutter/src/painting/image_stream.dart’ (‘/C:/src/flutter/packages/flutter/lib/src/painting/image_stream.dart’).
imageStream?.removeListener(updateImage);
^
../../AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/flutter_advanced_networkimage-0.3.14/lib/transition_to_image.dart:273:38: Error: The argument type ‘dynamic Function(ImageInfo, bool)’ can’t be assigned to the
parameter type ‘ImageStreamListener’.
- ‘ImageInfo’ is from ‘package:flutter/src/painting/image_stream.dart’ (‘/C:/src/flutter/packages/flutter/lib/src/painting/image_stream.dart’).
- ‘ImageStreamListener’ is from ‘package:flutter/src/painting/image_stream.dart’ (‘/C:/src/flutter/packages/flutter/lib/src/painting/image_stream.dart’).
oldImageStream?.removeListener(_updateImage);
^
../../AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/flutter_advanced_networkimage-0.3.14/lib/transition_to_image.dart:274:32: Error: The argument type ‘dynamic Function(ImageInfo, bool)’ can’t be assigned to the
parameter type ‘ImageStreamListener’.
- ‘ImageInfo’ is from ‘package:flutter/src/painting/image_stream.dart’ (‘/C:/src/flutter/packages/flutter/lib/src/painting/image_stream.dart’).
- ‘ImageStreamListener’ is from ‘package:flutter/src/painting/image_stream.dart’ (‘/C:/src/flutter/packages/flutter/lib/src/painting/image_stream.dart’).
imageStream.addListener(updateImage);
^
../../AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/palette_generator-0.1.1/lib/palette_generator.dart:188:29: Error: The argument type ‘void Function(ImageInfo, bool)’ can’t be assigned to the parameter type
‘ImageStreamListener’.
- ‘ImageInfo’ is from ‘package:flutter/src/painting/image_stream.dart’ (‘/C:/src/flutter/packages/flutter/lib/src/painting/image_stream.dart’).
- ‘ImageStreamListener’ is from ‘package:flutter/src/painting/image_stream.dart’ (‘/C:/src/flutter/packages/flutter/lib/src/painting/image_stream.dart’).
stream.removeListener(imageListener);
^
../../AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/palette_generator-0.1.1/lib/palette_generator.dart:194:31: Error: The argument type ‘void Function(ImageInfo, bool)’ can’t be assigned to the parameter type
‘ImageStreamListener’.
- ‘ImageInfo’ is from ‘package:flutter/src/painting/image_stream.dart’ (‘/C:/src/flutter/packages/flutter/lib/src/painting/image_stream.dart’).
- ‘ImageStreamListener’ is from ‘package:flutter/src/painting/image_stream.dart’ (‘/C:/src/flutter/packages/flutter/lib/src/painting/image_stream.dart’).
stream.removeListener(imageListener);
^
../../AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/palette_generator-0.1.1/lib/palette_generator.dart:201:24: Error: The argument type ‘void Function(ImageInfo, bool)’ can’t be assigned to the parameter type
‘ImageStreamListener’.
- ‘ImageInfo’ is from ‘package:flutter/src/painting/image_stream.dart’ (‘/C:/src/flutter/packages/flutter/lib/src/painting/image_stream.dart’).
- ‘ImageStreamListener’ is from ‘package:flutter/src/painting/image_stream.dart’ (‘/C:/src/flutter/packages/flutter/lib/src/painting/image_stream.dart’).
stream.addListener(imageListener);
^
Exception: Gradle task assembleDebug failed with exit code 1