Я наконец обновил свою машину до Catalina, но при запуске моего проекта на Android реальном устройстве при первом запуске я получаю целую кучу новых отпечатков, и некоторые из них являются ошибками, но я не совсем понимаю их все:
Running "flutter pub get" in fixit_cloud_biking... 1,4s
Launching lib/main.dart on SM A510F in debug mode...
Running Gradle task 'assembleDebug'...
Note: /Users/vinnytwice/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_remote_config-0.3.1+1/android/src/main/java/io/flutter/plugins/firebase/firebaseremoteconfig/MethodCallHandlerImpl.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
✓ Built build/app/outputs/flutter-apk/app-debug.apk.
Installing build/app/outputs/flutter-apk/app.apk... 13,9s
Waiting for SM A510F to report its views...
Debug service listening on ws://127.0.0.1:51814/L8hZvsjjoKw=/ws
Syncing files to device SM A510F...
D/Choreographer(19121): init sf_choreo_doframe debug_Level : 0x4f4cdebug_game_running : false
D/ViewRootImpl@6dfbe03[MainActivity](19121): ThreadedRenderer.create() translucent=false
D/InputTransport(19121): Input channel constructed: fd=90
D/ViewRootImpl@6dfbe03[MainActivity](19121): setView = DecorView@27b0180[MainActivity] touchMode=true
D/ViewRootImpl@6dfbe03[MainActivity](19121): dispatchAttachedToWindow
D/ViewRootImpl@6dfbe03[MainActivity](19121): Relayout returned: oldFrame=[0,0][0,0] newFrame=[0,0][1080,1920] result=0x27 surface={isValid=true -853223424} surfaceGenerationChanged=true
I/OpenGLRenderer(19121): Initialized EGL, version 1.4
D/ViewRootImpl@6dfbe03[MainActivity](19121): mHardwareRenderer.initialize() mSurface={isValid=true -853223424} hwInitialized=true
D/OpenGLRenderer(19121): Swap behavior 1
D/mali_winsys(19121): EGLint new_window_surface(egl_winsys_display*, void*, EGLSurface, EGLConfig, egl_winsys_surface**, egl_color_buffer_format*, EGLBoolean) returns 0x3000, [1080x1920]-format:1
D/SurfaceView(19121): Relayout returned: oldFrame=[0,0][0,0] newFrame=[0,0][1080,1920] result=0x7 surface={Surface(name=null)/@0xb9b357 isValid=true -853147648}
D/mali_winsys(19121): EGLint new_window_surface(egl_winsys_display*, void*, EGLSurface, EGLConfig, egl_winsys_surface**, egl_color_buffer_format*, EGLBoolean) returns 0x3000, [1080x1920]-format:1
I/Choreographer(19121): Skipped 58 frames! The application may be doing too much work on its main thread.
D/ViewRootImpl@6dfbe03[MainActivity](19121): Relayout returned: oldFrame=[0,0][1080,1920] newFrame=[0,0][1080,1920] result=0x1 surface={isValid=true -853223424} surfaceGenerationChanged=false
D/SurfaceView(19121): Relayout returned: oldFrame=[0,0][1080,1920] newFrame=[0,0][1080,1920] result=0x1 surface={Surface(name=null)/@0xb9b357 isValid=true -853145600}
D/ViewRootImpl@6dfbe03[MainActivity](19121): MSG_RESIZED_REPORT: frame=Rect(0, 0 - 1080, 1920) ci=Rect(0, 72 - 0, 0) vi=Rect(0, 72 - 0, 0) or=1
D/ViewRootImpl@6dfbe03[MainActivity](19121): MSG_WINDOW_FOCUS_CHANGED 1
D/ViewRootImpl@6dfbe03[MainActivity](19121): mHardwareRenderer.initializeIfNeeded()#2 mSurface={isValid=true -853223424}
V/InputMethodManager(19121): Starting input: tba=android.view.inputmethod.EditorInfo@e44 nm : com.vinny.fixit_cloud_biking ic=null
I/InputMethodManager(19121): [IMM] startInputInner - mService.startInputOrWindowGainedFocus
D/InputTransport(19121): Input channel constructed: fd=100
V/InputMethodManager(19121): Starting input: tba=android.view.inputmethod.EditorInfo@b7ed862 nm : com.vinny.fixit_cloud_biking ic=null
E/FlutterFcmService(19121): Fatal: failed to find callback
I/flutter (19121): device Locale is it_IT
Я решил (я думаю) все проблемы, кроме этой:
V/InputMethodManager(21902): Starting input: tba=android.view.inputmethod.EditorInfo@e44 nm : com.vinny.fixit_cloud_biking ic=null
.
Что мне не хватает для настройки системы Catalina?
Устранено:
E/FlutterFcmService(19121): Fatal: failed to find callback
:
Эта ошибка связана с отсутствием обратного вызова onBackgroundMessage:
. Он никогда не показывался на High-sierra, и уведомления все равно доставлялись в фоновом режиме .. поэтому я никогда не настраивал его .. Теперь я установил его ..
I/Choreographer(19121): Skipped 58 frames! The application may be doing too much work on its main thread.
:
Это стало лучше (пропущено 45 кадров) после добавления <application android:hardwareAccelerated="true"/>
в debug / profile / main AndroidManifest
, но я предполагаю, что мои фоновые изображения слишком тяжелые, поэтому я уменьшу их размер до меньшего размера, чтобы увидеть, улучшит ли это его еще больше.
I/FA (21902): Tag Manager is not found and thus will not be used
: отсутствует реализация плагина для Google Analytics .. поэтому я добавлю его.
Ошибка входа в Google:
PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null)
:
Я регенерировал SHA-1 с этой машины, обновил google-services.json
в firebase и заменил в проекте flutter.
Это доктор флаттера для обеих машин:
# High-sierra:
[✓] Flutter (Channel unknown, v1.12.13+hotfix.7, on Mac OS X 10.13.6 17G65, locale it-IT)
• Flutter version 1.12.13+hotfix.7 at /Users/vinnytwice/Developer/flutter
• Framework revision 9f5ff2306b (6 months ago), 2020-01-26 22:38:26 -0800
• Engine revision a67792536c
• Dart version 2.7.0
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /Users/vinnytwice/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 10.2.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.2.1, Build version 10E1001
• CocoaPods version 1.8.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 3.5)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 44.0.1
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[✓] Connected device (3 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 7.0 (API 24) (emulator)
• Chrome • chrome • web-javascript • Google Chrome 84.0.4147.105
• Web Server • web-server • web-javascript • Flutter Tools
• No issues found!
Каталина:
[✓] Flutter (Channel beta, 1.19.0-4.3.pre, on Mac OS X 10.15.4 19E287, locale it-IT)
• Flutter version 1.19.0-4.3.pre at /Users/vinnytwice/Developer/flutter
• Framework revision 8fe7655ed2 (5 weeks ago), 2020-07-01 14:31:18 -0700
• Engine revision 9a28c3bcf4
• Dart version 2.9.0 (build 2.9.0-14.1.beta)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
• Android SDK at /Users/vinnytwice/Library/Android/sdk
• Platform android-29, build-tools 30.0.1
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.5, Build version 11E608c
• CocoaPods version 1.9.3
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 47.1.2
• Dart plugin version 193.7361
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
[✓] Connected device (5 available)
• SM A510F • 3300f55e4cf61347 • android-arm • Android 7.0 (API 24)
• iPhone di Vincenzo • 8c9c02820ecf9697a9fc62e04a7b29fc452802c5 • ios • iOS 12.4.6
• iPad Pro (12.9-inch) (4th generation) • 08E2351F-A170-4C2E-A8DE-8FED3B5E3124 • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-5 (simulator)
• Web Server • web-server • web-javascript • Flutter Tools
• Chrome • chrome • web-javascript • Google Chrome 84.0.4147.105
• No issues found!