You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exception: /Users/runner/.pub-cache/hosted/pub.dev/device_info_plus-11.1.1/android/src/main/kotlin/dev/fluttercommunity/plus/device_info/MethodCallHandlerImpl.kt:75:47: warning: 'SERIAL: String!' is deprecated. Deprecated in Java
exception: build["serialNumber"] = Build.SERIAL
exception: ^
Flutter Doctor
[√] Flutter (Channel stable, 3.24.5, on Microsoft Windows [Version 10.0.22631.4460], locale en-US)
• Flutter version 3.24.5 on channel stable at C:\src\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision dec2ee5c1f (3 weeks ago), 2024-11-13 11:13:06 -0800
• Engine revision a18df97ca5
• Dart version 3.5.4
• DevTools version 2.37.3
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at d:\installers\android-sdk-windows\
• Platform android-34-ext8, build-tools 34.0.0
• Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
• Java version OpenJDK Runtime Environment (build 17.0.11+0--11852314)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Users\UserX\AppData\Local\Google\Chrome\Application\chrome.exe
[X] Visual Studio - develop Windows apps
X Visual Studio not installed; this is necessary to develop Windows apps.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components
[√] Android Studio (version 2024.1)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.11+0--11852314)
[√] Connected device (5 available)
• 68c7b167 • android-arm64 • Android 13 (API 33)
• Galaxy S10 (mobile) • 127.0.0.1:6555 • android-x64 • Android 13 (API 33)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22631.4460]
• Chrome (web) • chrome • web-javascript • Google Chrome 131.0.6778.86
• Edge (web) • edge • web-javascript • Microsoft Edge 131.0.2903.63
[√] Network resources
• All expected network resources are available.
! Doctor found issues in 1 category.
Checklist before submitting a bug
I searched issues in this repository and couldn't find such bug/problem
I Google'd a solution and I couldn't find it
I searched on StackOverflow for a solution and I couldn't find it
I read the README.md file of the plugin
I'm using the latest version of the plugin
All dependencies are up to date with flutter pub upgrade
I did a flutter clean
I tried running the example project
The text was updated successfully, but these errors were encountered:
The plugin already checks on the android version and uses getSerial() instead from Android 26 ("O") and above, I am not sure why the compiler complained about it:
if (Build.VERSION.SDK_INT>=Build.VERSION_CODES.O) {
build["serialNumber"] =try {
Build.getSerial()
} catch (ex:SecurityException) {
Build.UNKNOWN
}
} else {
build["serialNumber"] =Build.SERIAL
}
Running flutter build apk on the example project doesn't show this error.
➜ example git:(main) flutter build apk
// removed
warning: [options] source value 8 is obsolete and will be removed in a future release
warning: [options] target value 8 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
3 warnings
Generating lint files for backported methods only (compile API B)
Running Gradle task 'assembleRelease'... 143.6s
✓ Built build/app/outputs/flutter-apk/app-release.apk (19.1MB)
Can you paste your full flutter build apk output, and as well check if you have any custom lint rules?
@miquelbeltran looks like it's not happening again. I've tried to replicate the warning in order to give you a more detailed way to reproduce it but everything looks good now.
Thanks for the quick reply!
Operating System
Android
Plugin
device_info_plus
Version
11.1.1
Flutter SDK
3.24.5
Compilation command
flutter build apk
Dart Dependencies
Native dependencies
No response
Compilation Error
Flutter Doctor
Checklist before submitting a bug
flutter pub upgrade
flutter clean
The text was updated successfully, but these errors were encountered: