Messio icon indicating copy to clipboard operation
Messio copied to clipboard

Repo won't build/compile

Open cc123 opened this issue 5 years ago • 1 comments

Here's the error messages:

n)

Compiler message: /d:/flutter/.pub-cache/hosted/pub.dartlang.org/cached_network_image-1.1.1/lib/src/cached_network_image_provider.dart:42:24: Error: The method 'CachedNetworkImageProvider.load' has fewer positional arguments than those of overridden method 'ImageProvider.load'. ImageStreamCompleter load(CachedNetworkImageProvider key) { ^ /d:/flutter/packages/flutter/lib/src/painting/image_provider.dart:403:24: Context: This is the overridden method ('load'). ImageStreamCompleter load(T key, DecoderCallback decode); ^ Target kernel_snapshot failed: Exception: Errors during snapshot creation: null build failed.

FAILURE: Build failed with an exception.

Here are my flutter details:

Flutter 1.12.13+hotfix.9 • channel stable • https://github.com/flutter/flutter.git Framework • revision f139b11009 (4 weeks ago) • 2020-03-30 13:57:30 -0700 Engine • revision af51afceb8 Tools • Dart 2.7.2

cc123 avatar Apr 27 '20 18:04 cc123

my flutter details: Flutter 1.17.2 • channel stable • https://github.com/flutter/flutter.git Framework • revision 5f21edf8b6 (2 weeks ago) • 2020-05-28 12:44:12 -0700 Engine • revision b851c71829 Tools • Dart 2.8.3

pubspec.yaml update version cloud_firestore: ^0.13.6 #Firebase Database flushbar: ^1.10.4 cached_network_image: ^2.0.0

android/app/build.gradle mark //apply plugin: 'com.google.gms.google-services' // Google Play services Gradle plugin

then

√ Built build\app\outputs\apk\debug\app-debug.apk. Installing build\app\outputs\apk\app.apk... but get whitescreen
you can try it


https://stackoverflow.com/questions/57689492/flutter-unhandled-exception-servicesbinding-defaultbinarymessenger-was-accesse

add WidgetFlutterBinding.ensureInitialized() as the first line of main()

then if you fix FirebaseApp with name [DEFAULT] you will see the first screen

primochen avatar Jun 12 '20 06:06 primochen

Apologies for the late response! The following PR fixes all these issues and gets the app to a running state again.

adityadroid avatar Dec 02 '22 20:12 adityadroid