Closed Nico04 closed 4 years ago
Hi Nicolas Sorry the problem came from the to string method that use framework only object runtime.
Replace it with runtime Type to correct compilation or see last commit
Thx
Le mar. 28 avr. 2020 à 18:49, Nicolas B notifications@github.com a écrit :
Using your exemple project with flutter_blurhash: ^0.4.0, I can't compile on Android :
Compiler message: /C:/ProgramData/Flutter/.pub-cache/hosted/pub.dartlang.org/flutter_blurhash-0.4.0/lib/src/blurhash_image.dart:76:10: Error: The method 'objectRuntimeType' isn't defined for the class 'BlurHashImage'.
- 'BlurHashImage' is from 'package:flutter_blurhash/src/blurhash_image.dart' ('/C:/ProgramData/Flutter/.pub-cache/hosted/pub.dartlang.org/flutter_blurhash-0.4.0/lib/src/blurhash_image.dart'). Try correcting the name to the name of an existing method, or defining a method named 'objectRuntimeType'. '${objectRuntimeType(this, 'BlurHashImage')}(${describeIdentity(blurHash)}, scale: $scale)'; ^^^^^^^^^^^^^^^^^ Target kernel_snapshot failed: Exception: Errors during snapshot creation: null build failed.
FAILURE: Build failed with an exception.
Any idea how to fix this ?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/fluttercommunity/flutter_blurhash/issues/16, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ4MWMKYKEBGNS6FSFJR5TRO4CKLANCNFSM4MS73CRQ .
-- Robbie
OK, do you plan to release a patch soon ? Thanks :)
Done !
Using your exemple project with
flutter_blurhash: ^0.4.0
, I can't compile on Android :Any idea how to fix this ?