Note: d:\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_messaging-6.0.8\android\src\main\java\io\flutter\plugins\firebasemessaging\FirebaseMessagingPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
-----------------------Using this flutter--------------------
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
Hi @jcvw75
could you please run
flutter clean
flutter pub cache repair
if the issue persists please your flutter doctor -v
and your flutter run --verbose?
thank you
I did the first 2 and the issue is still there, but I also enabled -Xlint:deprecation in gradle and got some other warning message this time. Builds fine though.
------flutter build apk --split-per-abi---------------------
Running Gradle task 'assembleRelease'...
d:\flutter.pub-cache\hosted\pub.dartlang.orgfirebase_messaging-6.0.9\android\s
rc\main\java\io\flutter\plugins\firebasemessaging\FirebaseMessagingPlugin.java:8
1: warning: [deprecation] getFlutterEngine() in FlutterPluginBinding has been deprecated
binding.getApplicationContext(), binding.getFlutterEngine().getDartExecutor());
-------------------------------flutter doctor -v---------------------------
[√] Flutter (Channel stable, v1.12.13+hotfix.5, on Microsoft Windows [Version 6.3.9600], locale en-US)
• Flutter version 1.12.13+hotfix.5 at d:\flutter
• Framework revision 27321ebbad (3 days ago), 2019-12-10 18:15:01 -0800
• Engine revision 2994f7e1e6
• Dart version 2.7.0
[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at C:\Users\jason\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
• All Android licenses accepted.
[√] Android Studio (version 3.5)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 42.1.1
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
[√] VS Code, 64-bit edition (version 1.41.0)
• VS Code at C:\Program Files\Microsoft VS Code
• Flutter extension version 3.7.1
[!] Connected device
! No devices available
! Doctor found issues in 1 category.
----flutter run --verbose-----------------------------------------------------------------------------
flutter run --verbose
[ +30 ms] executing: [d:\flutter] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +62 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ ] 27321ebbad34b0a3fafe99fac037102196d655ff
[ ] executing: [d:\flutter] git describe --match v..* --first-parent --long --tags
[ +36 ms] Exit code 0 from: git describe --match v..* --first-parent --long --tags
[ ] v1.12.13+hotfix.5-0-g27321eb
[ +8 ms] executing: [d:\flutter] git rev-parse --abbrev-ref --symbolic @{u}
[ +36 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] origin/stable
[ ] executing: [d:\flutter] git ls-remote --get-url origin
[ +41 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ +92 ms] executing: [d:\flutter] git rev-parse --abbrev-ref HEAD
[ +39 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] stable
[ +128 ms] executing: C:\Users\jason\AppData\Local\Android\sdk\platform-tools\adb.exe devices -l
[ +15 ms] Exit code 0 from: C:\Users\jason\AppData\Local\Android\sdk\platform-tools\adb.exe devices -l
[ ] List of devices attached
[ +10 ms] No supported devices connected.
[ +14 ms] "flutter run" took 206ms.
Launching lib\main.dart on MI MAX 2 in debug mode...
Running Gradle task 'assembleDebug'...
Note: D:\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_messaging-6.0.9\android\src\main\java\io\flutter\plugins\firebasemessaging\FirebaseMessagingPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
D:\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences-0.5.6\android\src\main\java\io\flutter\plugins\sharedpreferences\SharedPreferencesPlugin.java:25: warning: [deprecation] getFlutterEngine() in FlutterPluginBinding has been deprecated
setupChannel(binding.getFlutterEngine().getDartExecutor(), binding.getApplicationContext());
^
1 warning
√ Built build\app\outputs\apk\debug\app-debug.apk.
Installing build\app\outputs\apk\app.apk...
Syncing files to device MI MAX 2...
-------------------------------flutter doctor -v---------------------------
`D:\project\workspace>flutter doctor -v
[√] Flutter (Channel unknown, v1.12.13+hotfix.5, on Microsoft Windows [Version 10.0.18362.535], locale en-US)
• Flutter version 1.12.13+hotfix.5 at D:\flutter
• Framework revision 27321ebbad (2 weeks ago), 2019-12-10 18:15:01 -0800
• Engine revision 2994f7e1e6
• Dart version 2.7.0
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at C:\Users\hungb\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.2
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
• All Android licenses accepted.
[√] Android Studio (version 3.5)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 39.0.3
• Dart plugin version 191.8423
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
[√] VS Code (version 1.41.1)
• VS Code at C:\Users\hungb\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.7.1
[√] Connected device (1 available)
• MI MAX 2 • b0e5de04 • android-arm64 • Android 7.1.1 (API 25)
• No issues found!
`
----flutter run --verbose---
flutter_run_verbose.txt
hai, do you solve this? i just got the error here.
@iapicca I am using
Flutter 1.12.13+hotfix.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 27321ebbad (il y a 5 semaines) • 2019-12-10 18:15:01 -0800
Engine • revision 2994f7e1e6
Tools • Dart 2.7.0
firebase_messaging 6.0.9
I applied your comment https://github.com/FirebaseExtended/flutterfire/issues/1625#issuecomment-565448974
Note: /mnt/Dev/flutter/.pub-cache/hosted/pub.dartlang.org/package_info-0.4.0+13/android/src/main/java/io/flutter/plugins/packageinfo/PackageInfoPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /mnt/Dev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.9/android/src/main/java/io/flutter/plugins/firebasemessaging/FirebaseMessagingPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
/mnt/Dev/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.6/android/src/main/java/io/flutter/plugins/sharedpreferences/SharedPreferencesPlugin.java:25: warning: [deprecation] getFlutterEngine() in FlutterPluginBinding has been deprecated
setupChannel(binding.getFlutterEngine().getDartExecutor(), binding.getApplicationContext());
^
1 warning
e: Supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath:
class io.flutter.plugins.firebasemessaging.FlutterFirebaseMessagingService, unresolved supertypes: com.google.firebase.messaging.FirebaseMessagingService
And still have the issue, please fix the deprecated code :)
downgrading shared_preferences: ^0.5.6 to shared_preferences: ^0.5.3 solved the deprecation errors
class io.flutter.plugins.firebasemessaging.FlutterFirebaseMessagingService, unresolved supertypes: com.google.firebase.messaging.FirebaseMessagingService got solved by
https://github.com/FirebaseExtended/flutterfire/issues/1606#issuecomment-565134789
Hey all 👋
As part of our roadmap (#2582) we've just shipped a complete rework of the firebase_messaging plugin that aims to solve this and many other issues.
If you can, please try out the dev release (see the migration guide for upgrading and for changes) and if you have any feedback then join in the discussion here.
Given the scope of the rework I'm going to go ahead and close this issue in favor of trying out the latest plugin.
Thanks everyone.