Flutter: Unable to send message via quickblox - flutter

This question belong to those who has worked with quickblox sdk.
I am going to create a chat application by quickBlox sdk. I installed package from pub.dev and it work fine with create user, login and create dialog but when I called send method I face with this error any one help me.
[ +22 ms] E/MethodChannel#FlutterQBChatChannel(20162): Failed to handle method call
[ +1 ms] E/MethodChannel#FlutterQBChatChannel(20162): java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Long
[ +1 ms] E/MethodChannel#FlutterQBChatChannel(20162): at com.quickblox.quickblox_sdk.chat.ChatModule.sendMessage(ChatModule.java:681)
[ +12 ms] E/MethodChannel#FlutterQBChatChannel(20162): at com.quickblox.quickblox_sdk.chat.ChatModule.handleMethod(ChatModule.java:148)
[ +9 ms] E/MethodChannel#FlutterQBChatChannel(20162): at
com.quickblox.quickblox_sdk.chat.-$$Lambda$DVgH6HdFVfXJ1jon6MQo8bSJBRA.onMethodCall(Unknown Source:2)
[ +1 ms] E/MethodChannel#FlutterQBChatChannel(20162): at
io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:262)
[ ] E/MethodChannel#FlutterQBChatChannel(20162): at
io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:178)
[ +1 ms] E/MethodChannel#FlutterQBChatChannel(20162): at
io.flutter.embedding.engine.dart.DartMessenger.lambda$handleMessageFromDart$0$DartMessenger(DartMessenger.java:206)
[ +1 ms] E/MethodChannel#FlutterQBChatChannel(20162): at
io.flutter.embedding.engine.dart.-$$Lambda$DartMessenger$6ZD1MYkhaLxyPjtoFDxe45u43DI.run(Unknown Source:12)
[ ] E/MethodChannel#FlutterQBChatChannel(20162): at android.os.Handler.handleCallback(Handler.java:873)
[ ] E/MethodChannel#FlutterQBChatChannel(20162): at android.os.Handler.dispatchMessage(Handler.java:99)
[ ] E/MethodChannel#FlutterQBChatChannel(20162): at android.os.Looper.loop(Looper.java:193)
[ +1 ms] E/MethodChannel#FlutterQBChatChannel(20162): at android.app.ActivityThread.main(ActivityThread.java:6669)
[ +1 ms] E/MethodChannel#FlutterQBChatChannel(20162): at java.lang.reflect.Method.invoke(Native Method)
[ +3 ms] E/MethodChannel#FlutterQBChatChannel(20162): at
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
[ +37 ms] E/MethodChannel#FlutterQBChatChannel(20162): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
[ +24 ms] I/flutter (20162): java.lang.String cannot be cast to java.lang.Long//null//java.lang.ClassCastException: java.lang.String
cannot be cast to java.lang.Long
[ +2 ms] I/flutter (20162): at com.quickblox.quickblox_sdk.chat.ChatModule.sendMessage(ChatModule.java:681)
[ +1 ms] I/flutter (20162): at com.quickblox.quickblox_sdk.chat.ChatModule.handleMethod(ChatModule.java:148)
[ +2 ms] I/flutter (20162): at com.quickblox.quickblox_sdk.chat.-$$Lambda$DVgH6HdFVfXJ1jon6MQo8bSJBRA.onMethodCall(Unknown Source:2)
[ +1 ms] I/flutter (20162): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:262)
[ +1 ms] I/flutter (20162): at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:178)
[ +1 ms] I/flutter (20162): at
io.flutter.embedding.engine.dart.DartMessenger.lambda$handleMessageFromDart$0$DartMessenger(DartMessenger.java:206)
[ +1 ms] I/flutter (20162): at io.flutter.embedding.engine.dart.-$$Lambda$DartMessenger$6ZD1MYkhaLxyPjtoFDxe45u43DI.run(Unknown
Source:12)
[ ] I/flutter (20162): at android.os.Handler.handleCallback(Handler.java:873)
[ +1 ms] I/flutter (20162): at android.os.Handler.dispatchMessage(Handler.java:99)
[ ] I/flutter (20162): at android.os.Looper.loop(Looper.java:193)
[ ] I/flutter (20162): at android.app.ActivityThread.main(A

This Exception occurs, because of the dateSent parameter. I faced the same problem I was able to solve it by sending null as value, because dateSent is not required.

Related

Task :firebase_core:compileDebugJavaWithJavac FAILED after upgrading flutter to 3.0.5

I am trying to build my flutter app, everything was fine before upgrading Flutter to version 3.0.5
Now I am getting the following error
C:\Users\ASUS\Documents\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-1.21.1\android\src\main\java\io\flutter\plugins\fireba
se\core\FlutterFirebaseCorePlugin.java:16: error: package io.flutter.embedding.engine.plugins does not exist
[ +271 ms] import io.flutter.embedding.engine.plugins.FlutterPlugin;
[ +290 ms] ^
[ +6 ms]
C:\Users\ASUS\Documents\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-1.21.1\android\src\main\java\io\flutter\plugins\fireba
se\core\FlutterFirebaseCorePlugin.java:26: error: cannot find symbol
[ +180 ms] implements FlutterPlugin,
[ +8 ms] ^
[ +5 ms] symbol: class FlutterPlugin
[ +339 ms]
C:\Users\ASUS\Documents\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-1.21.1\android\src\main\java\io\flutter\plugins\fireba
se\core\GeneratedAndroidFirebaseCore.java:9: error: package io.flutter.plugin.common does not exist
[ +23 ms] import io.flutter.plugin.common.BasicMessageChannel;
[ +10 ms] ^
[ +6 ms]
C:\Users\ASUS\Documents\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-1.21.1\android\src\main\java\io\flutter\plugins\fireba
se\core\GeneratedAndroidFirebaseCore.java:10: error: package io.flutter.plugin.common does not exist
[ +31 ms] import io.flutter.plugin.common.BinaryMessenger;
[ +22 ms] ^
[ +4 ms]
C:\Users\ASUS\Documents\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-1.21.1\android\src\main\java\io\flutter\plugins\fireba
se\core\GeneratedAndroidFirebaseCore.java:11: error: package io.flutter.plugin.common does not exist
[ +7 ms] import io.flutter.plugin.common.MessageCodec;
[ +5 ms] ^
[ +13 ms]
C:\Users\ASUS\Documents\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-1.21.1\android\src\main\java\io\flutter\plugins\fireba
se\core\GeneratedAndroidFirebaseCore.java:12: error: package io.flutter.plugin.common does not exist
[ +14 ms] import io.flutter.plugin.common.StandardMessageCodec;
[ +15 ms] ^
[ +6 ms]
C:\Users\ASUS\Documents\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-1.21.1\android\src\main\java\io\flutter\plugins\fireba
se\core\FlutterFirebaseCorePlugin.java:33: error: cannot find symbol
[ +16 ms] public void onAttachedToEngine(FlutterPluginBinding binding) {
[ +12 ms] ^
[ +18 ms] symbol: class FlutterPluginBinding
[ +13 ms] location: class FlutterFirebaseCorePlugin
[ +19 ms]
C:\Users\ASUS\Documents\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-1.21.1\android\src\main\java\io\flutter\plugins\fireba
se\core\FlutterFirebaseCorePlugin.java:40: error: cannot find symbol
[ +67 ms] public void onDetachedFromEngine(#NonNull FlutterPluginBinding binding) {
[ +5 ms] ^
[ +89 ms] symbol: class FlutterPluginBinding
[ +127 ms] location: class FlutterFirebaseCorePlugin
[ +70 ms]
C:\Users\ASUS\Documents\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-1.21.1\android\src\main\java\io\flutter\plugins\fireba
se\core\GeneratedAndroidFirebaseCore.java:523: error: cannot find symbol
[ +192 ms] static MessageCodec<Object> getCodec() {
[ +60 ms] ^
[ +79 ms] symbol: class MessageCodec
[ +78 ms] location: interface FirebaseCoreHostApi
[ +5 ms]
C:\Users\ASUS\Documents\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-1.21.1\android\src\main\java\io\flutter\plugins\fireba
se\core\GeneratedAndroidFirebaseCore.java:531: error: cannot find symbol
[ +5 ms] static void setup(BinaryMessenger binaryMessenger, FirebaseCoreHostApi api) {
[ +7 ms] ^
[ +8 ms] symbol: class BinaryMessenger
[ +34 ms] location: interface FirebaseCoreHostApi
[ +32 ms]
C:\Users\ASUS\Documents\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-1.21.1\android\src\main\java\io\flutter\plugins\fireba
se\core\GeneratedAndroidFirebaseCore.java:664: error: cannot find symbol
[ +8 ms] static MessageCodec<Object> getCodec() {
[ +11 ms] ^
[ +29 ms] symbol: class MessageCodec
[ +12 ms] location: interface FirebaseAppHostApi
[ +5 ms]
C:\Users\ASUS\Documents\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-1.21.1\android\src\main\java\io\flutter\plugins\fireba
se\core\GeneratedAndroidFirebaseCore.java:671: error: cannot find symbol
[ +25 ms] static void setup(BinaryMessenger binaryMessenger, FirebaseAppHostApi api) {
[ +31 ms] ^
[ +15 ms] symbol: class BinaryMessenger
[ +19 ms] location: interface FirebaseAppHostApi
[ +28 ms]
C:\Users\ASUS\Documents\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-1.21.1\android\src\main\java\io\flutter\plugins\fireba
se\core\GeneratedAndroidFirebaseCore.java:478: error: cannot find symbol
[ +24 ms] private static class FirebaseCoreHostApiCodec extends StandardMessageCodec {
[ +7 ms] ^
[ +14 ms] symbol: class StandardMessageCodec
[ +6 ms] location: class GeneratedAndroidFirebaseCore
[ +3 ms]
C:\Users\ASUS\Documents\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-1.21.1\android\src\main\java\io\flutter\plugins\fireba
se\core\GeneratedAndroidFirebaseCore.java:647: error: cannot find symbol
[ +10 ms] private static class FirebaseAppHostApiCodec extends StandardMessageCodec {
[ +28 ms] ^
[ +11 ms] symbol: class StandardMessageCodec
[ +8 ms] location: class GeneratedAndroidFirebaseCore
[ +18 ms]
C:\Users\ASUS\Documents\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-1.21.1\android\src\main\java\io\flutter\plugins\fireba
se\core\FlutterFirebaseCorePlugin.java:32: error: method does not override or implement a method from a supertype
[ +27 ms] #Override
[ +30 ms] ^
[ +30 ms]
C:\Users\ASUS\Documents\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-1.21.1\android\src\main\java\io\flutter\plugins\fireba
se\core\FlutterFirebaseCorePlugin.java:39: error: method does not override or implement a method from a supertype
[ +10 ms] #Override
[ +33 ms] ^
[ +18 ms]
C:\Users\ASUS\Documents\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-1.21.1\android\src\main\java\io\flutter\plugins\fireba
se\core\GeneratedAndroidFirebaseCore.java:483: error: method does not override or implement a method from a supertype
[ +15 ms] #Override
[ +26 ms] ^
[ +11 ms]
C:\Users\ASUS\Documents\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-1.21.1\android\src\main\java\io\flutter\plugins\fireba
se\core\GeneratedAndroidFirebaseCore.java:487: error: cannot find symbol
[ +8 ms] return PigeonFirebaseOptions.fromMap((Map<String, Object>) readValue(buffer));
[ +8 ms] ^
[ +5 ms] symbol: method readValue(ByteBuffer)
[ +2 ms] location: class FirebaseCoreHostApiCodec
[ +5 ms]
C:\Users\ASUS\Documents\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-1.21.1\android\src\main\java\io\flutter\plugins\fireba
se\core\GeneratedAndroidFirebaseCore.java:490: error: cannot find symbol
[ +20 ms] return PigeonInitializeResponse.fromMap((Map<String, Object>) readValue(buffer));
[ +5 ms] ^
[ +4 ms] symbol: method readValue(ByteBuffer)
[ +2 ms] location: class FirebaseCoreHostApiCodec
[ +3 ms]
C:\Users\ASUS\Documents\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-1.21.1\android\src\main\java\io\flutter\plugins\fireba
se\core\GeneratedAndroidFirebaseCore.java:493: error: non-static variable super cannot be referenced from a static context
[ +8 ms] return super.readValueOfType(type, buffer);
[ +15 ms] ^
[ +4 ms]
C:\Users\ASUS\Documents\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-1.21.1\android\src\main\java\io\flutter\plugins\fireba
se\core\GeneratedAndroidFirebaseCore.java:493: error: cannot find symbol
[ +12 ms] return super.readValueOfType(type, buffer);
[ +4 ms] ^
[ +4 ms] symbol: method readValueOfType(byte,ByteBuffer)
[ +5 ms]
C:\Users\ASUS\Documents\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-1.21.1\android\src\main\java\io\flutter\plugins\fireba
se\core\GeneratedAndroidFirebaseCore.java:497: error: method does not override or implement a method from a supertype
[ +5 ms] #Override
[ +4 ms] ^
[ +4 ms]
C:\Users\ASUS\Documents\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-1.21.1\android\src\main\java\io\flutter\plugins\fireba
se\core\GeneratedAndroidFirebaseCore.java:506: error: non-static variable super cannot be referenced from a static context
[ +8 ms] super.writeValue(stream, value);
[ +9 ms] ^
[ +5 ms]
C:\Users\ASUS\Documents\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-1.21.1\android\src\main\java\io\flutter\plugins\fireba
se\core\GeneratedAndroidFirebaseCore.java:506: error: cannot find symbol
[ +5 ms] super.writeValue(stream, value);
[ +5 ms] ^
[ +2 ms] symbol: method writeValue(ByteArrayOutputStream,Object)
[ +2 ms]
C:\Users\ASUS\Documents\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-1.21.1\android\src\main\java\io\flutter\plugins\fireba
se\core\GeneratedAndroidFirebaseCore.java:533: error: cannot find symbol
[ +6 ms] BasicMessageChannel<Object> channel =
[ +6 ms] ^
[ +3 ms] symbol: class BasicMessageChannel
[ +3 ms] location: interface FirebaseCoreHostApi
[ +6 ms]
C:\Users\ASUS\Documents\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-1.21.1\android\src\main\java\io\flutter\plugins\fireba
se\core\GeneratedAndroidFirebaseCore.java:534: error: cannot find symbol
[ +6 ms] new BasicMessageChannel<>(
[ +5 ms] ^
[ +4 ms] symbol: class BasicMessageChannel
[ +3 ms] location: interface FirebaseCoreHostApi
[ +2 ms]
C:\Users\ASUS\Documents\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-1.21.1\android\src\main\java\io\flutter\plugins\fireba
se\core\GeneratedAndroidFirebaseCore.java:577: error: cannot find symbol
[ +7 ms] BasicMessageChannel<Object> channel =
[ +3 ms] ^
[ +3 ms] symbol: class BasicMessageChannel
[ +5 ms] location: interface FirebaseCoreHostApi
[ +7 ms]
C:\Users\ASUS\Documents\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-1.21.1\android\src\main\java\io\flutter\plugins\fireba
se\core\GeneratedAndroidFirebaseCore.java:578: error: cannot find symbol
[ +9 ms] new BasicMessageChannel<>(
[ +8 ms] ^
[ +3 ms] symbol: class BasicMessageChannel
[ +6 ms] location: interface FirebaseCoreHostApi
[ +4 ms]
C:\Users\ASUS\Documents\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-1.21.1\android\src\main\java\io\flutter\plugins\fireba
se\core\GeneratedAndroidFirebaseCore.java:611: error: cannot find symbol
[ +7 ms] BasicMessageChannel<Object> channel =
[ +9 ms] ^
[ +6 ms] symbol: class BasicMessageChannel
[ +9 ms] location: interface FirebaseCoreHostApi
[ +6 ms]
C:\Users\ASUS\Documents\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-1.21.1\android\src\main\java\io\flutter\plugins\fireba
se\core\GeneratedAndroidFirebaseCore.java:612: error: cannot find symbol
[ +11 ms] new BasicMessageChannel<>(
[ +5 ms] ^
[ +15 ms] symbol: class BasicMessageChannel
[ +6 ms] location: interface FirebaseCoreHostApi
[ +6 ms]
C:\Users\ASUS\Documents\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-1.21.1\android\src\main\java\io\flutter\plugins\fireba
se\core\GeneratedAndroidFirebaseCore.java:673: error: cannot find symbol
[ +13 ms] BasicMessageChannel<Object> channel =
[ +6 ms] ^
[ +13 ms] symbol: class BasicMessageChannel
[ +22 ms] location: interface FirebaseAppHostApi
[ +7 ms]
C:\Users\ASUS\Documents\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-1.21.1\android\src\main\java\io\flutter\plugins\fireba
se\core\GeneratedAndroidFirebaseCore.java:674: error: cannot find symbol
[ +11 ms] new BasicMessageChannel<>(
[ +7 ms] ^
[ +7 ms] symbol: class BasicMessageChannel
[ +7 ms] location: interface FirebaseAppHostApi
[ +5 ms]
C:\Users\ASUS\Documents\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-1.21.1\android\src\main\java\io\flutter\plugins\fireba
se\core\GeneratedAndroidFirebaseCore.java:716: error: cannot find symbol
[ +12 ms] BasicMessageChannel<Object> channel =
[ +16 ms] ^
[ +23 ms] symbol: class BasicMessageChannel
[ +10 ms] location: interface FirebaseAppHostApi
[ +9 ms]
C:\Users\ASUS\Documents\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-1.21.1\android\src\main\java\io\flutter\plugins\fireba
se\core\GeneratedAndroidFirebaseCore.java:717: error: cannot find symbol
[ +10 ms] new BasicMessageChannel<>(
[ +29 ms] ^
[ +18 ms] symbol: class BasicMessageChannel
[ +4 ms] location: interface FirebaseAppHostApi
[ +7 ms]
C:\Users\ASUS\Documents\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-1.21.1\android\src\main\java\io\flutter\plugins\fireba
se\core\GeneratedAndroidFirebaseCore.java:759: error: cannot find symbol
[ +16 ms] BasicMessageChannel<Object> channel =
[ +26 ms] ^
[ +39 ms] symbol: class BasicMessageChannel
[ +10 ms] location: interface FirebaseAppHostApi
[ +9 ms]
C:\Users\ASUS\Documents\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-1.21.1\android\src\main\java\io\flutter\plugins\fireba
se\core\GeneratedAndroidFirebaseCore.java:760: error: cannot find symbol
[ +12 ms] new BasicMessageChannel<>(
[ +11 ms] ^
[ +20 ms] symbol: class BasicMessageChannel
[ +8 ms] location: interface FirebaseAppHostApi
[ +8 ms] 36 errors
[ +25 ms] FAILURE: Build failed with an exception.
[ +13 ms] * What went wrong:
[ +8 ms] Execution failed for task ':firebase_core:compileDebugJavaWithJavac'.
[ +11 ms] > Compilation failed; see the compiler error output for details.
[ +12 ms] * Try:
[ +4 ms] > Run with --stacktrace option to get the stack trace.
[ +3 ms] > Run with --info or --debug option to get more log output.
[ +10 ms] > Run with --scan to get full insights.
[ +5 ms] * Get more help at https://help.gradle.org
[ +8 ms] BUILD FAILED in 25s
[ +20 ms] > Task :firebase_core:compileDebugJavaWithJavac FAILED
[ +3 ms] Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
[ +7 ms] You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own
scripts or plugins.
[ +18 ms] See https://docs.gradle.org/7.4/userguide/command_line_interface.html#sec:command_line_warnings
[ +9 ms] 10 actionable tasks: 1 executed, 9 up-to-date
[ +427 ms] Running Gradle task 'assembleDebug'... (completed in 33.1s)
[+40014 ms] Exception: Gradle task assembleDebug failed with exit code 1
[ +7 ms] "flutter run" took 92,318ms.
[ +15 ms]
#0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
#1 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:699:9)
<asynchronous suspension>
#2 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1183:27)
<asynchronous suspension>
#3 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#4 CommandRunner.runCommand (package:args/command_runner.dart:209:13)
<asynchronous suspension>
#5 FlutterCommandRunner.runCommand.<anonymous closure>
(package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)
<asynchronous suspension>
#6 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#7 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
<asynchronous suspension>
#8 run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
<asynchronous suspension>
#9 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#10 main (package:flutter_tools/executable.dart:94:3)
<asynchronous suspension>
This is flutter doctor log
[√] Flutter (Channel stable, 3.0.5, on Microsoft Windows [Version 10.0.22000.675], locale en-US)
[!] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc4)
X cmdline-tools component is missing
Run `path/to/sdkmanager --install "cmdline-tools;latest"`
See https://developer.android.com/studio/command-line for more details.
X Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.
[√] Chrome - develop for the web
[!] Visual Studio - develop for Windows (Visual Studio Community 2019 16.10.2)
X Visual Studio is missing necessary components. Please re-run the Visual Studio installer for the "Desktop development with C++"
workload, and include these components:
MSVC v142 - VS 2019 C++ x64/x86 build tools
- If there are multiple build tool versions available, install the latest
C++ CMake tools for Windows
Windows 10 SDK
[√] Android Studio (version 2021.1)
[√] VS Code (version 1.70.2)
[√] Connected device (4 available)
[√] HTTP Host Availability
! Doctor found issues in 2 categories.
pubspec.yaml dependencies:
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
cupertino_icons: ^1.0.4
http: ^0.13.3
intl: ^0.17.0
get: ^4.5.0
shimmer: ^2.0.0
url_launcher: ^6.0.18
auto_size_text: ^3.0.0
shared_preferences: ^2.0.12
sqflite: ^2.0.1
badges: ^2.0.2
share_plus: ^4.0.3
fluttertoast: ^8.0.8
data_connection_checker: ^0.3.4
package_info_plus: ^1.3.0
webview_flutter: ^3.0.0
cached_network_image: ^3.2.0
font_awesome_flutter: ^10.1.0
geolocator: ^8.0.3
google_maps_flutter: ^2.1.1
firebase_messaging: ^13.0.0
firebase_core: ^1.21.1
flutter_local_notifications: ^9.1.5
dio: ^4.0.4
flutter_svg: ^1.0.0
pin_code_fields: ^7.3.0
flutter_easyloading: ^3.0.3
firebase_crashlytics: ^2.8.9
build.gradle file
buildscript {
ext.kotlin_version = '1.7.10'
repositories {
google()
jcenter()
gradlePluginPortal()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.gms:google-services:4.3.8'
}
}
allprojects {
repositories {
google()
jcenter()
gradlePluginPortal()
}
}
rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
}
task clean(type: Delete) {
delete rootProject.buildDir
}
What I tried to do:
flutter clean
flutter pub cache repair
invalidate cashes + restart
change kotlin version
change firebase core, messaging, crashlytics versions
All in vain, and no clue about how to fix
The project was working fine before the upgrade
Any help would be appreciated

Undefined reference while compiling Flutter app on Linux

I built a plugin which uses Dart FFI and a shared lib and published to pub.dev. Whenever I try using the plugin in my app, it always fails with a file not found error and I don't know where the error is coming from.
Error:
[ ] [ ] origin/stable
[ ] [ ] executing: [/home/francis/Development/flutter/] git ls-remote --get-url origin
[ ] [ +10 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] [ ] https://github.com/flutter/flutter.git
[ ] [ +160 ms] executing: [/home/francis/Development/flutter/] git rev-parse --abbrev-ref HEAD
[ ] [ +12 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] [ ] stable
[ ] [ +139 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ ] [ +6 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ ] [ +212 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[ ] [ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ +9 ms] [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[ ] [ ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] [ +3 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[ +1 ms] [ +96 ms] Initializing file store
[ ] [ +28 ms] Done initializing file store
[ ] [ +96 ms] Skipping target: gen_localizations
[ ] [ +16 ms] Skipping target: gen_dart_plugin_registrant
[ ] [+1046 ms] Skipping target: unpack_linux
[ ] [ +989 ms] Skipping target: kernel_snapshot
[ ] [ +391 ms] Skipping target: debug_bundle_linux-x64_assets
[ ] [ ] Persisting file store
[ ] [ +19 ms] Done persisting file store
[ ] [ +7 ms] build succeeded.
[ ] [ +11 ms] "flutter assemble" took 2,983ms.
[ ] [ +260 ms] ensureAnalyticsSent: 255ms
[ ] [ +2 ms] Running shutdown hooks
[ ] [ ] Shutdown hooks complete
[ ] [ +1 ms] exiting with code 0
[ +922 ms] [2/5] Building CXX object CMakeFiles/dspace.dir/flutter/generated_plugin_registrant.cc.o
[ +1 ms] FAILED: CMakeFiles/dspace.dir/flutter/generated_plugin_registrant.cc.o
[ +5 ms] /usr/bin/clang++ -DAPPLICATION_ID=\"com.example.dspace\"
-I/home/francis/AndroidStudioProjects/dspace/linux/flutter/ephemeral
-I/home/francis/AndroidStudioProjects/dspace/linux/flutter/ephemeral/.plugin_symlinks/size/linux/src -isystem
/usr/include/gtk-3.0 -isystem /usr/include/pango-1.0 -isystem /usr/include/glib-2.0 -isystem
/usr/lib/glib-2.0/include -isystem /usr/include/harfbuzz -isystem /usr/include/freetype2 -isystem
/usr/include/libpng16 -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem
/usr/include/fribidi -isystem /usr/include/cairo -isystem /usr/include/lzo -isystem /usr/include/pixman-1
-isystem /usr/include/gdk-pixbuf-2.0 -isystem /usr/include/gio-unix-2.0 -isystem /usr/include/cloudproviders
-isystem /usr/include/atk-1.0 -isystem /usr/include/at-spi2-atk/2.0 -isystem /usr/include/dbus-1.0 -isystem
/usr/lib/dbus-1.0/include -isystem /usr/include/at-spi-2.0 -g -Wall -Werror -pthread -std=gnu++17 -MD -MT
CMakeFiles/dspace.dir/flutter/generated_plugin_registrant.cc.o -MF
CMakeFiles/dspace.dir/flutter/generated_plugin_registrant.cc.o.d -o
CMakeFiles/dspace.dir/flutter/generated_plugin_registrant.cc.o -c
/home/francis/AndroidStudioProjects/dspace/linux/flutter/generated_plugin_registrant.cc
[ +14 ms] /home/francis/AndroidStudioProjects/dspace/linux/flutter/generated_plugin_registrant.cc:9:10:
fatal error: 'size/size_plugin.h' file not found
[ +1 ms] #include <size/size_plugin.h>
[ ] ^~~~~~~~~~~~~~~~~~~~
[ ] 1 error generated.
[ +417 ms] [3/5] Building CXX object CMakeFiles/dspace.dir/my_application.cc.o
[ +2 ms] ninja: build stopped: subcommand failed.
[ +42 ms] Building Linux application... (completed in 6.8s)
[+6533 ms] Exception: Build process failed
[ +4 ms] "flutter run" took 13,967ms.
[ +18 ms]
#0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
#1 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:669:9)
<asynchronous suspension>
#2 FlutterCommand.run.<anonymous closure>
(package:flutter_tools/src/runner/flutter_command.dart:1125:27)
<asynchronous suspension>
#3 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#4 CommandRunner.runCommand (package:args/command_runner.dart:209:13)
<asynchronous suspension>
#5 FlutterCommandRunner.runCommand.<anonymous closure>
(package:flutter_tools/src/runner/flutter_command_runner.dart:288:9)
<asynchronous suspension>
#6 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#7 FlutterCommandRunner.runCommand
(package:flutter_tools/src/runner/flutter_command_runner.dart:236:5)
<asynchronous suspension>
#8 run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
<asynchronous suspension>
#9 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#10 main (package:flutter_tools/executable.dart:92:3)
<asynchronous suspension>
[ +260 ms] ensureAnalyticsSent: 254ms
[ +1 ms] Running shutdown hooks
[ ] Shutdown hooks complete
[ ] exiting with code 1
I've modified my cmake file severally to fix this and tried various include methods but to no avail.
Current cmake:
cmake_minimum_required(VERSION 3.10)
set(CMAKE_CXX_STANDARD 17) # Use C++17 lib
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS 1)
#set(CMAKE_BUILD_TYPE RELEASE)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
#set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR})
project(size_plugin VERSION 1.0.0 LANGUAGES CXX)
set(PLUGIN_NAME "size_plugin")
set(HEADER_FILES "src/size_plugin.h")
set(SOURCE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/src/size_plugin.cc")
message(${FLUTTER_MANAGED_DIR})
message(${HEADER_FILES} ${CMAKE_SOURCE_DIR})
#add_library(size SHARED src/fsize.cpp)
add_library(${PLUGIN_NAME} SHARED
${HEADER_FILES}
${SOURCE_FILES}
)
apply_standard_settings(${PLUGIN_NAME})
#target_include_directories(${PLUGIN_NAME} INTERFACE ${HEADER_FILES})
target_include_directories(${PLUGIN_NAME} INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/src")
target_link_libraries(${PLUGIN_NAME} PRIVATE flutter)
target_link_libraries(${PLUGIN_NAME} PRIVATE PkgConfig::GTK)
#add_executable(size_test src/fsize.cpp)
My pubspec
name: size
description: A simple plugin that can display disk size on desktop.
version: 1.0.3
repository: https://github.com/Clashkid155/size
issue_tracker: https://github.com/Clashkid155/size/issues
# homepage: https://www.example.com
environment:
sdk: '>=2.14.3 <3.0.0'
flutter: '>=1.20.0 '
flutter:
plugin:
platforms:
linux:
pluginClass: SizePlugin
windows:
pluginClass: SizePlugin
dependencies:
ffi: ^1.1.2
path: ^1.8.0
Every info provided is from my plugin and not the flutter app am trying to build cause the whole issue started when i add that plugin
I've been using this as reference.
My only option now is to rebuild the plugin using method channel as that was the first iteration of the plugin but i didn't what to depend on flutter and dart FFI was easier with less code needed.
Update:
I've solved the above error by regenerating the plugin as a flutter plugin which added the missing file.
Now I've another build error
[ +71 ms] [4/7] Building CXX object CMakeFiles/dspace.dir/my_application.cc.o
[ +91 ms] [5/7] Linking CXX shared library plugins/size/libsize_plugin.so
[ +255 ms] [6/7] Linking CXX executable intermediates_do_not_run/dspace
[ ] FAILED: intermediates_do_not_run/dspace
[ +2 ms] : && /usr/bin/clang++ -g CMakeFiles/dspace.dir/main.cc.o
CMakeFiles/dspace.dir/my_application.cc.o CMakeFiles/dspace.dir/flutter/generated_plugin_registrant.cc.o -o
intermediates_do_not_run/dspace
-Wl,-rpath,/home/francis/AndroidStudioProjects/dspace/build/linux/x64/debug/plugins/size:/home/francis/Androi
dStudioProjects/dspace/linux/flutter/ephemeral: plugins/size/libsize_plugin.so
/home/francis/AndroidStudioProjects/dspace/linux/flutter/ephemeral/libflutter_linux_gtk.so
/usr/lib/libgtk-3.so /usr/lib/libgdk-3.so /usr/lib/libz.so /usr/lib/libpangocairo-1.0.so
/usr/lib/libpango-1.0.so /usr/lib/libharfbuzz.so /usr/lib/libatk-1.0.so /usr/lib/libcairo-gobject.so
/usr/lib/libcairo.so /usr/lib/libgdk_pixbuf-2.0.so /usr/lib/libgio-2.0.so /usr/lib/libgobject-2.0.so
/usr/lib/libglib-2.0.so && :
[ +1 ms] /usr/bin/ld: CMakeFiles/dspace.dir/flutter/generated_plugin_registrant.cc.o: in function
`fl_register_plugins(_FlPluginRegistry*)':
[ ] /home/francis/AndroidStudioProjects/dspace/linux/flutter/generated_plugin_registrant.cc:14:
undefined reference to `size_plugin_register_with_registrar'
[ +1 ms] clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
[ +4 ms] ninja: build stopped: subcommand failed.
[ +26 ms] Building Linux application... (completed in 26.1s)
[ +1 ms] Exception: Build process failed
[ +2 ms] "flutter run" took 26,807ms.
[ +6 ms]
#0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
#1 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:669:9)
<asynchronous suspension>
#2 FlutterCommand.run.<anonymous closure>
(package:flutter_tools/src/runner/flutter_command.dart:1125:27)
<asynchronous suspension>
#3 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#4 CommandRunner.runCommand (package:args/command_runner.dart:209:13)
<asynchronous suspension>
#5 FlutterCommandRunner.runCommand.<anonymous closure>
(package:flutter_tools/src/runner/flutter_command_runner.dart:288:9)
<asynchronous suspension>
#6 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#7 FlutterCommandRunner.runCommand
(package:flutter_tools/src/runner/flutter_command_runner.dart:236:5)
<asynchronous suspension>
#8 run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
<asynchronous suspension>
#9 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#10 main (package:flutter_tools/executable.dart:92:3)
<asynchronous suspension>
[ +257 ms] ensureAnalyticsSent: 253ms
[ +2 ms] Running shutdown hooks
[ ] Shutdown hooks complete
[ ] exiting with code 1
Content of generated_plugin_registrant.cc
//
// Generated file. Do not edit.
//
// clang-format off
#include "generated_plugin_registrant.h"
#include <size/size_plugin.h>
void fl_register_plugins(FlPluginRegistry* registry) {
g_autoptr(FlPluginRegistrar) size_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "SizePlugin");
size_plugin_register_with_registrar(size_registrar);
}
Content of size_plugin.h
#ifndef FLUTTER_PLUGIN_SIZE_PLUGIN_H_
#define FLUTTER_PLUGIN_SIZE_PLUGIN_H_
#include <flutter_linux/flutter_linux.h>
G_BEGIN_DECLS
#ifdef FLUTTER_PLUGIN_IMPL
#define FLUTTER_PLUGIN_EXPORT __attribute__((visibility("default")))
#else
#define FLUTTER_PLUGIN_EXPORT
#endif
typedef struct _SizePlugin SizePlugin;
typedef struct {
GObjectClass parent_class;
} SizePluginClass;
FLUTTER_PLUGIN_EXPORT GType size_plugin_get_type();
FLUTTER_PLUGIN_EXPORT void size_plugin_register_with_registrar(
FlPluginRegistrar* registrar);
G_END_DECLS
#endif // FLUTTER_PLUGIN_SIZE_PLUGIN_H_
Content of generated_plugin_registrant.h
//
// Generated file. Do not edit.
//
// clang-format off
#ifndef GENERATED_PLUGIN_REGISTRANT_
#define GENERATED_PLUGIN_REGISTRANT_
#include <flutter_linux/flutter_linux.h>
// Registers Flutter plugins.
void fl_register_plugins(FlPluginRegistry* registry);
#endif // GENERATED_PLUGIN_REGISTRANT_
Flutter plugins follow a very specific format, and the tooling requires core elements of that format to exist. That includes the public header file with the correct path, as you have discovered, and also the plugin registration, which is the second issues you have (it sounds like you have restored the declaration, but not the implementation).
If your goal is to build your own FFI library code by piggy-backing on the plugin template, you need to leave those core elements in place. Your registration method doesn't need to do anything, but it must exist because the flutter tool will generate a call to it.
It's likely that in the future there will be tooling support for FFI-specific builds, but until then you need to make your library follow the required elements of the plugin structure.

flutter cannot run apk on real device

I create a demo app in flutter , trying to run app after built on Android device, APK can't be installed, Android device gave (unfortunately , demo has stopped.)
Flutter 2.0.6 • channel stable
Flutter doctor • No issues found!
flutter run -v
- [ +112 ms] E/AndroidRuntime(26009): FATAL EXCEPTION: main
[ +2 ms] E/AndroidRuntime(26009): Process: com.example.demo, PID: 26009
[ +2 ms] E/AndroidRuntime(26009): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.demo/com.example.demo.MainActivity}:
android.content.res.Resources$NotFoundException: File res/drawable-v21/launch_background.xml from drawable resource ID #0x7f040000
[ +3 ms] E/AndroidRuntime(26009): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2656)
[ +3 ms] E/AndroidRuntime(26009): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2721)
[ +1 ms] E/AndroidRuntime(26009): at android.app.ActivityThread.access$900(ActivityThread.java:168)
[ +1 ms] E/AndroidRuntime(26009): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1393)
[ +1 ms] E/AndroidRuntime(26009): at android.os.Handler.dispatchMessage(Handler.java:102)
[ +1 ms] E/AndroidRuntime(26009): at android.os.Looper.loop(Looper.java:135)
[ +1 ms] E/AndroidRuntime(26009): at android.app.ActivityThread.main(ActivityThread.java:5753)
[ +1 ms] E/AndroidRuntime(26009): at java.lang.reflect.Method.invoke(Native Method)
[ +7 ms] E/AndroidRuntime(26009): at java.lang.reflect.Method.invoke(Method.java:372)
[ +1 ms] E/AndroidRuntime(26009): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1405)
[ +1 ms] E/AndroidRuntime(26009): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1200)
[ +1 ms] E/AndroidRuntime(26009): Caused by: android.content.res.Resources$NotFoundException: File res/drawable-v21/launch_background.xml from drawable resource ID
#0x7f040000
[ +1 ms] E/AndroidRuntime(26009): at android.content.res.Resources.loadDrawableForCookie(Resources.java:2890)
[ +1 ms] E/AndroidRuntime(26009): at android.content.res.Resources.loadDrawable(Resources.java:2765)
[ +4 ms] E/AndroidRuntime(26009): at android.content.res.Resources.getDrawable(Resources.java:1012)
[ +5 ms] E/AndroidRuntime(26009): at android.content.res.Resources.getDrawable(Resources.java:978)
[ +2 ms] E/AndroidRuntime(26009): at io.flutter.embedding.android.FlutterActivity.getSplashScreenFromManifest(FlutterActivity.java:493)
[ +1 ms] E/AndroidRuntime(26009): at io.flutter.embedding.android.FlutterActivity.provideSplashScreen(FlutterActivity.java:469)
[ +1 ms] E/AndroidRuntime(26009): at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onCreateView(FlutterActivityAndFragmentDelegate.java:301)
[ +4 ms] E/AndroidRuntime(26009): at io.flutter.embedding.android.FlutterActivity.createFlutterView(FlutterActivity.java:518)
[ +1 ms] E/AndroidRuntime(26009): at io.flutter.embedding.android.FlutterActivity.onCreate(FlutterActivity.java:415)
[ +2 ms] E/AndroidRuntime(26009): at android.app.Activity.performCreate(Activity.java:6112)
[ +2 ms] E/AndroidRuntime(26009): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1117)
[ +1 ms] E/AndroidRuntime(26009): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2609)
[ +2 ms] E/AndroidRuntime(26009): ... 10 more
[ +1 ms] E/AndroidRuntime(26009): Caused by: org.xmlpull.v1.XmlPullParserException: Binary XML file line #4: <item> tag requires a 'drawable' attribute or child tag
defining a drawable
[ +6 ms] E/AndroidRuntime(26009): at android.graphics.drawable.LayerDrawable.inflateLayers(LayerDrawable.java:202)
[ +1 ms] E/AndroidRuntime(26009): at android.graphics.drawable.LayerDrawable.inflate(LayerDrawable.java:147)
[ +1 ms] E/AndroidRuntime(26009): at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:1095)
[ +1 ms] E/AndroidRuntime(26009): at android.graphics.drawable.Drawable.createFromXml(Drawable.java:1017)
[ +1 ms] E/AndroidRuntime(26009): at android.content.res.Resources.loadDrawableForCookie(Resources.java:2880)
[ +1 ms] E/AndroidRuntime(26009): ... 21 more
....
[ +11 ms] Installing build\app\outputs\flutter-apk\app.apk...
[ +4 ms] executing: C:\Users\Adi KANSO\AppData\Local\Android\sdk\platform-tools\adb.exe -s ea88b045 install -t -r C:\demo\build\app\outputs\flutter-apk\app.apk
[+35426 ms] Performing Push Install
C:\demo\build\app\outputs\flutter-apk\app.apk: 1 file pushed, 0 skipped. 5.5 MB/s (50970196 bytes in 8.905s)
pkg: /data/local/tmp/app.apk
Success
[ +4 ms] Installing build\app\outputs\flutter-apk\app.apk... (completed in 35.4s)
[ +6 ms] executing: C:\Users\Adi KANSO\AppData\Local\Android\sdk\platform-tools\adb.exe -s ea88b045 shell echo -n 224dbc5d94c46ece2ee3d1ef273b59c4eac1c401 >
/data/local/tmp/sky.com.example.demo.sha1
[ +67 ms] executing: C:\Users\Adi KANSO\AppData\Local\Android\sdk\platform-tools\adb.exe -s ea88b045 shell -x logcat -v time -t 1
[ +153 ms] --------- beginning of main
05-10 17:45:05.756 E/lights ( 995): write_int failed to open -1
[ +23 ms] executing: C:\Users\Adi KANSO\AppData\Local\Android\sdk\platform-tools\adb.exe -s ea88b045 shell am start -a android.intent.action.RUN -f 0x20000000 --ez
enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode true --ez verify-entry-points true
com.example.demo/com.example.demo.MainActivity
[+1390 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.demo/.MainActivity (has extras) }
[ +6 ms] Waiting for observatory port to be available...
[ +19 ms] Observatory URL on device: http://127.0.0.1:34736/hleZMml4hFQ=/
[ +4 ms] executing: C:\Users\Adi KANSO\AppData\Local\Android\sdk\platform-tools\adb.exe -s ea88b045 forward tcp:0 tcp:34736
[ +48 ms] 60889
[ +1 ms] Forwarded host port 60889 to device port 34736 for Observatory
[ +10 ms] Caching compiled dill
[ +44 ms] Connecting to service protocol: http://127.0.0.1:60889/hleZMml4hFQ=/
[ +18 ms] Fail to connect to service protocol: http://127.0.0.1:60889/hleZMml4hFQ=/: HttpException: Connection closed before full header was received, uri =
http://127.0.0.1:60889/hleZMml4hFQ=/ws
[+1407 ms] Error connecting to the service protocol: failed to connect to http://127.0.0.1:60889/hleZMml4hFQ=/
please any help!!
Pls uncomment following in manifest file
<meta-data
android:name="io.flutter.embedding.android.SplashScreenDrawable"
android:resource="#drawable/launch_background" />

The argument type 'String' can't be assigned to the parameter type 'DiagnosticsNode'

Please help - getting below error when trying to run:
**Compiler message:
/C:/Users/USER/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/flutter_sticky_header-0.3.4/lib/src/widgets/sticky_header_layout_builder.dart:147:16: Error: The argument type 'String' can't be assigned to the parameter type 'DiagnosticsNode'.
- 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('/C:/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
context: context);
^
Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
build failed.
FAILURE: Build failed with an exception.
* Where:
Script 'C:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 780
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'C:\flutter\bin\flutter.bat'' finished with non-zero exit value 1**
when running flutter run -v within terminal I get the following errors:
C:\allflutterprojects\rapidinhotest>flutter run -v
[ +34 ms] executing: [C:\flutter\] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +95 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +1 ms] 0b8abb4724aa590dd0f429683339b1e045a1594d
[ +1 ms] executing: [C:\flutter\] git describe --match v*.*.* --first-parent --long --tags
[ +81 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[ ] v1.12.13+hotfix.8-0-g0b8abb472
[ +12 ms] executing: [C:\flutter\] git rev-parse --abbrev-ref --symbolic #{u}
[ +63 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic #{u}
[ ] origin/stable
[ ] executing: [C:\flutter\] git ls-remote --get-url origin
[ +50 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ +140 ms] executing: [C:\flutter\] git rev-parse --abbrev-ref HEAD
[ +69 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] stable
[ +185 ms] executing: C:\Users\USER\AppData\Local\Android\Sdk\platform-tools\adb.exe devices -l
[ +30 ms] Exit code 0 from: C:\Users\USER\AppData\Local\Android\Sdk\platform-tools\adb.exe devices -l
[ ] List of devices attached
emulator-5554 device product:sdk_gphone_x86 model:sdk_gphone_x86 device:generic_x86_arm transport_id:2
[ +21 ms] C:\Users\USER\AppData\Local\Android\Sdk\platform-tools\adb.exe -s emulator-5554 shell getprop
[ +114 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[ +11 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ +9 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +97 ms] Found plugin cloud_firestore at C:\Users\USER\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\cloud_firestore-0.8.2+3\
[ +20 ms] Found plugin firebase_core at C:\Users\USER\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\firebase_core-0.2.5+1\
[ +20 ms] Found plugin google_maps_flutter at C:\Users\USER\AppData\Roaming\Pub\Cache\git\plugins-0a9d0c576a69f9b5d464ad811600e50a7b687911\packages\google_maps_flutter\
[ +26 ms] Found plugin path_provider at C:\Users\USER\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\path_provider-1.5.1\
[ +38 ms] Found plugin sqflite at C:\Users\USER\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\sqflite-1.2.0\
[ +89 ms] Found plugin cloud_firestore at C:\Users\USER\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\cloud_firestore-0.8.2+3\
[ +8 ms] Found plugin firebase_core at C:\Users\USER\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\firebase_core-0.2.5+1\
[ +14 ms] Found plugin google_maps_flutter at C:\Users\USER\AppData\Roaming\Pub\Cache\git\plugins-0a9d0c576a69f9b5d464ad811600e50a7b687911\packages\google_maps_flutter\
[ +17 ms] Found plugin path_provider at C:\Users\USER\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\path_provider-1.5.1\
[ +19 ms] Found plugin sqflite at C:\Users\USER\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\sqflite-1.2.0\
[ +82 ms] Generating C:\allflutterprojects\rapidinhotest\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[ +38 ms] ro.hardware = ranchu
[ +50 ms] Using hardware rendering with device sdk gphone x86. If you get graphics artifacts, consider enabling software rendering with "--enable-software-rendering".
[ +25 ms] Launching lib\main.dart on sdk gphone x86 in debug mode...
[ +17 ms] executing: C:\Users\USER\AppData\Local\Android\Sdk\platform-tools\adb.exe -s emulator-5554 shell -x logcat -v time -t 1
[ +87 ms] Exit code 0 from: C:\Users\USER\AppData\Local\Android\Sdk\platform-tools\adb.exe -s emulator-5554 shell -x logcat -v time -t 1
[ +1 ms] --------- beginning of main
03-06 00:29:48.113 E/netmgr ( 2114): Failed to open QEMU pipe 'qemud:network': Invalid argument
[ +14 ms] executing: C:\Users\USER\AppData\Local\Android\Sdk\platform-tools\adb.exe version
[ +3 ms] executing: C:\Users\USER\AppData\Local\Android\Sdk\platform-tools\adb.exe -s emulator-5554 logcat -v time -T 03-06 00:29:48.113
[ +88 ms] Android Debug Bridge version 1.0.41
Version 29.0.6-6198805
Installed as C:\Users\USER\AppData\Local\Android\Sdk\platform-tools\adb.exe
[ +6 ms] executing: C:\Users\USER\AppData\Local\Android\Sdk\platform-tools\adb.exe start-server
[ +90 ms] Building APK
[ +26 ms] [!] Your app isn't using AndroidX.
[ +1 ms] To avoid potential build failures, you can quickly migrate your app by following the steps on .
[ +20 ms] Running Gradle task 'assembleDebug'...
[ +6 ms] gradle.properties already sets `android.enableR8`
[ +15 ms] Using gradle from C:\allflutterprojects\rapidinhotest\android\gradlew.bat.
[ +20 ms] executing: C:\Program Files\Android\Android Studio\jre\bin\java -version
[ +177 ms] Exit code 0 from: C:\Program Files\Android\Android Studio\jre\bin\java -version
[ ] openjdk version "1.8.0_212-release"
OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)
[ +6 ms] executing: [C:\allflutterprojects\rapidinhotest\android\] C:\allflutterprojects\rapidinhotest\android\gradlew.bat -Pverbose=true
-Ptarget=C:\allflutterprojects\rapidinhotest\lib\main.dart -Ptrack-widget-creation=true -Pfilesystem-scheme=org-dartlang-root -Ptarget-platform=android-x86 assembleDebug
[+5306 ms] :app:compileFlutterBuildDebug
[ +1 ms] [ +82 ms] executing: [C:\flutter\] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +110 ms] [ +141 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +1 ms] [ +2 ms] 0b8abb4724aa590dd0f429683339b1e045a1594d
[ +1 ms] [ ] executing: [C:\flutter\] git describe --match v*.*.* --first-parent --long --tags
[ +80 ms] [ +90 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[ +1 ms] [ ] v1.12.13+hotfix.8-0-g0b8abb472
[ +9 ms] [ +15 ms] executing: [C:\flutter\] git rev-parse --abbrev-ref --symbolic #{u}
[ +77 ms] [ +72 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic #{u}
[ ] [ ] origin/stable
[ ] [ ] executing: [C:\flutter\] git ls-remote --get-url origin
[ +78 ms] [ +69 ms] Exit code 0 from: git ls-remote --get-url origin
[ +7 ms] [ ] https://github.com/flutter/flutter.git
[ +135 ms] [ +156 ms] executing: [C:\flutter\] git rev-parse --abbrev-ref HEAD
[ +83 ms] [ +79 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ +1 ms] [ ] stable
[ +53 ms] [ +47 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[ +1 ms] [ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ +1 ms] [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ +1 ms] [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ +1 ms] [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ +1 ms] [ +7 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ +1 ms] [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ +1 ms] [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ +1 ms] [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ +1 ms] [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +240 ms] [ +254 ms] Initializing file store
[ +53 ms] [ +50 ms] Done initializing file store
[+3210 ms] [+3208 ms] kernel_snapshot: Starting due to {}
[ +55 ms] [ +45 ms] C:\flutter\bin\cache\dart-sdk\bin\dart.exe C:\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root
C:\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --target=flutter -Ddart.developer.causal_async_stacks=true -Ddart.vm.profile=false -Ddart.vm.product=false
--bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts
--track-widget-creation --no-link-platform --packages C:\allflutterprojects\rapidinhotest\.packages --output-dill
C:\allflutterprojects\rapidinhotest\.dart_tool\flutter_build\9e8e8d46a18ccb5b75fbdc16ee578c68\app.dill --depfile
C:\allflutterprojects\rapidinhotest\.dart_tool\flutter_build\9e8e8d46a18ccb5b75fbdc16ee578c68\kernel_snapshot.d package:rapidinho/main.dart
[+10351 ms] [+10361 ms]
[ +3 ms] Compiler message:
[ +1 ms] [ +3 ms] /C:/Users/USER/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/flutter_sticky_header-0.3.4/lib/src/widgets/sticky_header_layout_builder.dart:147:16:
Error: The argument type 'String' can't be assigned to the parameter type 'DiagnosticsNode'.
[ +6 ms] [ ] - 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('/C:/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
[ +2 ms] [ ] context: context);
[ +1 ms] [ ] ^
[+4886 ms] [+4894 ms] Persisting file store
[ +54 ms] [ +57 ms] Done persisting file store
[ +1 ms] [ +2 ms] Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
[ +35 ms] [ +24 ms] "flutter assemble" took 19,035ms.
[ +1 ms] build failed.
[ +4 ms] #0 throwToolExit (package:flutter_tools/src/base/common.dart:28:3)
[ +2 ms] #1 AssembleCommand.runCommand (package:flutter_tools/src/commands/assemble.dart:183:7)
[ +1 ms] <asynchronous suspension>
[ +1 ms] #2 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:615:18)
[ +1 ms] <asynchronous suspension>
[ +1 ms] #3 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:515:33)
[ +3 ms] <asynchronous suspension>
[ +5 ms] #4 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:146:29)
[ +1 ms] #5 _rootRun (dart:async/zone.dart:1126:13)
[ +1 ms] #6 _CustomZone.run (dart:async/zone.dart:1023:19)
[ +1 ms] #7 _runZoned (dart:async/zone.dart:1518:10)
[ +1 ms] #8 runZoned (dart:async/zone.dart:1465:12)
[ +1 ms] #9 AppContext.run (package:flutter_tools/src/base/context.dart:145:18)
[ +1 ms] #10 FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:505:20)
[ +1 ms] #11 CommandRunner.runCommand (package:args/command_runner.dart:197:27)
[ +1 ms] #12 FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:413:21)
[ +1 ms] <asynchronous suspension>
[ +2 ms] #13 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:146:29)
[ +1 ms] #14 _rootRun (dart:async/zone.dart:1126:13)
[ +1 ms] #15 _CustomZone.run (dart:async/zone.dart:1023:19)
[ +1 ms] #16 _runZoned (dart:async/zone.dart:1518:10)
[ ] #17 runZoned (dart:async/zone.dart:1465:12)
[ +1 ms] #18 AppContext.run (package:flutter_tools/src/base/context.dart:145:18)
[ +1 ms] #19 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:364:19)
[ ] #20 CommandRunner.run.<anonymous closure> (package:args/command_runner.dart:112:25)
[ +1 ms] #21 new Future.sync (dart:async/future.dart:224:31)
[ +2 ms] #22 CommandRunner.run (package:args/command_runner.dart:112:14)
[ +1 ms] #23 FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:250:18)
[ +2 ms] #24 run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:63:22)
[ +2 ms] #25 _rootRun (dart:async/zone.dart:1126:13)
[ +1 ms] #26 _CustomZone.run (dart:async/zone.dart:1023:19)
[ ] #27 _runZoned (dart:async/zone.dart:1518:10)
[ ] #28 runZoned (dart:async/zone.dart:1502:12)
[ +1 ms] #29 run.<anonymous closure> (package:flutter_tools/runner.dart:61:18)
[ +1 ms] <asynchronous suspension>
[ +1 ms] #30 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:146:29)
[ +1 ms] #31 _rootRun (dart:async/zone.dart:1126:13)
[ +1 ms] #32 _CustomZone.run (dart:async/zone.dart:1023:19)
[ +1 ms] #33 _runZoned (dart:async/zone.dart:1518:10)
[ +5 ms] #34 runZoned (dart:async/zone.dart:1465:12)
[ +2 ms] #35 AppContext.run (package:flutter_tools/src/base/context.dart:145:18)
[ +1 ms] #36 runInContext (package:flutter_tools/src/context_runner.dart:64:24)
[ +1 ms] #37 run (package:flutter_tools/runner.dart:50:10)
[ +1 ms] #38 main (package:flutter_tools/executable.dart:65:9)
[ +1 ms] #39 main (file:///C:/flutter/packages/flutter_tools/bin/flutter_tools.dart:8:3)
[ +1 ms] #40 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:305:32)
[ +1 ms] #41 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:174:12)
[ +46 ms] :app:compileFlutterBuildDebug FAILED
[ +4 ms] FAILURE: Build failed with an exception.
[ +1 ms] * Where:
[ +1 ms] Script 'C:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 780
[ +1 ms] * What went wrong:
[ +1 ms] Execution failed for task ':app:compileFlutterBuildDebug'.
[ +1 ms] > Process 'command 'C:\flutter\bin\flutter.bat'' finished with non-zero exit value 1
[ +1 ms] * Try:
[ +1 ms] 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.
[ +1 ms] * Get more help at https://help.gradle.org
[ +1 ms] BUILD FAILED in 24s
[ +1 ms] 1 actionable task: 1 executed
[ +600 ms] Running Gradle task 'assembleDebug'... (completed in 25.8s)
[ +17 ms] "flutter run" took 27,236ms.
Gradle task assembleDebug failed with exit code 1
#0 throwToolExit (package:flutter_tools/src/base/common.dart:28:3)
#1 buildGradleApp (package:flutter_tools/src/android/gradle.dart:387:7)
#2 _asyncThenWrapperHelper.<anonymous closure> (dart:async-patch/async_patch.dart:73:64)
#3 _rootRunUnary (dart:async/zone.dart:1134:38)
#4 _CustomZone.runUnary (dart:async/zone.dart:1031:19)
#5 _FutureListener.handleValue (dart:async/future_impl.dart:139:18)
#6 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:680:45)
#7 Future._propagateToListeners (dart:async/future_impl.dart:709:32)
#8 Future._completeWithValue (dart:async/future_impl.dart:524:5)
#9 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:32:15)
#10 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:290:13)
#11 _DefaultProcessUtils.stream (package:flutter_tools/src/base/process.dart)
#12 _asyncThenWrapperHelper.<anonymous closure> (dart:async-patch/async_patch.dart:73:64)
#13 _rootRunUnary (dart:async/zone.dart:1134:38)
#14 _CustomZone.runUnary (dart:async/zone.dart:1031:19)
#15 _FutureListener.handleValue (dart:async/future_impl.dart:139:18)
#16 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:680:45)
#17 Future._propagateToListeners (dart:async/future_impl.dart:709:32)
#18 Future._completeWithValue (dart:async/future_impl.dart:524:5)
#19 Future._asyncComplete.<anonymous closure> (dart:async/future_impl.dart:554:7)
#20 _rootRun (dart:async/zone.dart:1126:13)
#21 _CustomZone.run (dart:async/zone.dart:1023:19)
#22 _CustomZone.runGuarded (dart:async/zone.dart:925:7)
#23 _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:965:23)
#24 _microtaskLoop (dart:async/schedule_microtask.dart:43:21)
#25 _startMicrotaskLoop (dart:async/schedule_microtask.dart:52:5)
#26 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
#27 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:175:5)

Flutter: Target kernel_snapshot failed

I have updated to the latest flutter update. When I want to start the project, it returns an error. The project depends on several repositories and I don't know if that is why. I have tried multiple solutions but they do not solve the error. Hope someone can help me. thanks.
I updated flutter stable to the latest version:
Upgrading Flutter from /Users/domingo/flutter...
Updating cf37c2cd0..27321ebba
24 files changed, 651 insertions(+), 218 deletions(-)
Flutter is already up to date on channel stable
Flutter 1.12.13+hotfix.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 27321ebbad (2 days ago) • 2019-12-10 18:15:01 -0800
Engine • revision 2994f7e1e6
Tools • Dart 2.7.0
Debug Terminal Complete:
https://pastebin.com/2PwktnGT
/Users/domingo/StudioProjects/faycancrm/.dart_tool/flutter_build/e61e4110ac7bd4b7b74855b2fc423272/app.di
ll --depfile
/Users/domingo/StudioProjects/faycancrm/.dart_tool/flutter_build/e61e4110ac7bd4b7b74855b2fc423272/kernel
_snapshot.d package:faycancrm/main.dart
[+2401 ms] [+2478 ms]
[ +1 ms] Compiler message:
[ ] [ +3 ms]
../../flutter/.pub-cache/hosted/pub.dartlang.org/zefyr-0.8.0/lib/src/widgets/input.dart:11:7: Error: The
non-abstract class 'InputConnectionController' is missing implementations for these members:
[ ] [ ] - TextInputClient.connectionClosed
[ ] [ ] Try to either
[ ] [ ] - provide an implementation,
[ ] [ ] - inherit an implementation from a superclass or mixin,
[ ] [ ] - mark the class as abstract, or
[ ] [ ] - provide a 'noSuchMethod' implementation.
[ ] [ ] class InputConnectionController implements TextInputClient {
[ ] [ ] ^^^^^^^^^^^^^^^^^^^^^^^^^
[ ] [ ] ../../flutter/packages/flutter/lib/src/services/text_input.dart:661:8: Context:
'TextInputClient.connectionClosed' is defined here.
[ ] [ ] void connectionClosed();
[ ] [ ] ^^^^^^^^^^^^^^^^
[ +391 ms] [ +402 ms]
../../flutter/.pub-cache/hosted/pub.dartlang.org/cached_network_image-1.1.3/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) {
[ ] [ ] ^
[ ] [ ] ../../flutter/packages/flutter/lib/src/painting/image_provider.dart:403:24:
Context: This is the overridden method ('load').
[ ] [ ] ImageStreamCompleter load(T key, DecoderCallback decode);
[ ] [ ] ^
[+8796 ms] [+8774 ms] Persisting file store
[ ] [ +19 ms] Done persisting file store
[ ] [ +1 ms] Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
[ +97 ms] [ +11 ms] "flutter assemble" took 13.771ms.
[ ] build failed.
[ ] #0 throwToolExit (package:flutter_tools/src/base/common.dart:28:3)
[ ] #1 AssembleCommand.runCommand (package:flutter_tools/src/commands/assemble.dart:183:7)
[ ] <asynchronous suspension>
[ ] #2 FlutterCommand.verifyThenRunCommand
(package:flutter_tools/src/runner/flutter_command.dart:615:18)
[ ] <asynchronous suspension>
[ ] #3 FlutterCommand.run.<anonymous closure>
(package:flutter_tools/src/runner/flutter_command.dart:515:33)
[ +1 ms] <asynchronous suspension>
[ ] #4 AppContext.run.<anonymous closure>
(package:flutter_tools/src/base/context.dart:146:29)
[ ] #5 _rootRun (dart:async/zone.dart:1126:13)
[ ] #6 _CustomZone.run (dart:async/zone.dart:1023:19)
[ ] #7 _runZoned (dart:async/zone.dart:1518:10)
[ ] #8 runZoned (dart:async/zone.dart:1465:12)
[ ] #9 AppContext.run (package:flutter_tools/src/base/context.dart:145:18)
[ ] #10 FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:505:20)
[ ] #11 CommandRunner.runCommand (package:args/command_runner.dart:197:27)
[ ] #12 FlutterCommandRunner.runCommand.<anonymous closure>
(package:flutter_tools/src/runner/flutter_command_runner.dart:413:21)
[ +16 ms] <asynchronous suspension>
[ ] #13 AppContext.run.<anonymous closure>
(package:flutter_tools/src/base/context.dart:146:29)
[ ] #14 _rootRun (dart:async/zone.dart:1126:13)
[ ] #15 _CustomZone.run (dart:async/zone.dart:1023:19)
[ +1 ms] #16 _runZoned (dart:async/zone.dart:1518:10)
[ ] #17 runZoned (dart:async/zone.dart:1465:12)
[ ] #18 AppContext.run (package:flutter_tools/src/base/context.dart:145:18)
[ ] #19 FlutterCommandRunner.runCommand
(package:flutter_tools/src/runner/flutter_command_runner.dart:364:19)
[ ] #20 CommandRunner.run.<anonymous closure> (package:args/command_runner.dart:112:25)
[ ] #21 new Future.sync (dart:async/future.dart:224:31)
[ ] #22 CommandRunner.run (package:args/command_runner.dart:112:14)
[ ] #23 FlutterCommandRunner.run
(package:flutter_tools/src/runner/flutter_command_runner.dart:250:18)
[ ] #24 run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:63:22)
[ ] #25 _rootRun (dart:async/zone.dart:1126:13)
[ ] #26 _CustomZone.run (dart:async/zone.dart:1023:19)
[ ] #27 _runZoned (dart:async/zone.dart:1518:10)
[ ] #28 runZoned (dart:async/zone.dart:1502:12)
[ ] #29 run.<anonymous closure> (package:flutter_tools/runner.dart:61:18)
[ ] <asynchronous suspension>
[ ] #30 AppContext.run.<anonymous closure>
(package:flutter_tools/src/base/context.dart:146:29)
[ ] #31 _rootRun (dart:async/zone.dart:1126:13)
[ ] #32 _CustomZone.run (dart:async/zone.dart:1023:19)
[ ] #33 _runZoned (dart:async/zone.dart:1518:10)
[ ] #34 runZoned (dart:async/zone.dart:1465:12)
[ ] #35 AppContext.run (package:flutter_tools/src/base/context.dart:145:18)
[ ] #36 runInContext (package:flutter_tools/src/context_runner.dart:64:24)
[ ] #37 run (package:flutter_tools/runner.dart:50:10)
[ ] #38 main (package:flutter_tools/executable.dart:65:9)
[ ] #39 main
(file:///Users/domingo/flutter/packages/flutter_tools/bin/flutter_tools.dart:8:3)
[ +3 ms] #40 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:305:32)
[ ] #41 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:174:12)
[ ] FAILURE: Build failed with an exception.
[ ] * Where:
[ ] Script '/Users/domingo/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 780
[ ] * What went wrong:
[ ] Execution failed for task ':app:compileFlutterBuildDebug'.
[ ] > Process 'command '/Users/domingo/flutter/bin/flutter'' finished with non-zero exit value 1
[ +3 ms] * 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.
[ +5 ms] * Get more help at https://help.gradle.org
[ ] BUILD FAILED in 17s
[ ] > Task :app:compileFlutterBuildDebug FAILED
[ ] 1 actionable task: 1 executed
[ +471 ms] Running Gradle task 'assembleDebug'... (completed in 19,2s)
[ +3 ms] The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to
try using
Jetfier to solve the incompatibility.
[ +15 ms] ✏️ Creating `android/settings_aar.gradle`...
[ +4 ms] ✏️ Creating `android/settings_aar.gradle`... (completed in 2ms)
[ ] ✓ `android/settings_aar.gradle` created successfully.
[ +3 ms] Building plugin audioplayers...
[ +9 ms] Running Gradle task 'assembleAarRelease'...
[ +2 ms] set `android.enableR8=true` in gradle.properties
[ +26 ms] Using gradle from
It looks like the interface for TextInputClient has changed and Zefyr hasn't been updated to fully implement the new methods (for example, it looks like it's missing an implementation for connectionClosed, but the Zefyr source doesn't have an implementation).
Unfortunately, there's not much you can do about this other than:
File an issue against the Zefyr repo on GitHub and hope the author gets around to publishing a fix
Fork Zefyr and depend on a local copy on your machine after you've implemented the missing methods
Downgrade your Flutter version to the last version which Zefyr works on
Find another plugin which provides similar functionality