我目前在Flutter的主频道2.6.0-12.0.pre.406版本,每次我运行一个应用程序,我都会在控制台上收到这些奇怪的消息,我只是想知道为什么,它们意味着什么,如果我可以忽略这些消息。甚至当我新创建一个应用程序,运行它没有编辑任何东西时也会发生这种情况。所以即使当我运行示例应用程序时。
输出如下:
Launching lib\main.dart on ... in debug mode...
Running Gradle task 'assembleDebug'... 7,0s
√ Built build\app\outputs\flutter-apk\app-debug.apk.
I/ViewRootImpl@963f43d[MainActivity](25682): [DP] cancelDraw io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@ba09739 isViewVisible: true
I/ViewRootImpl@963f43d[MainActivity](25682): [DP] cancelDraw io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@ba09739 isViewVisible: true
I/ViewRootImpl@963f43d[MainActivity](25682): [DP] cancelDraw io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@ba09739 isViewVisible: true
I/ViewRootImpl@963f43d[MainActivity](25682): [DP] cancelDraw io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@ba09739 isViewVisible: true
I/ViewRootImpl@963f43d[MainActivity](25682): [DP] cancelDraw io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@ba09739 isViewVisible: true
I/ViewRootImpl@963f43d[MainActivity](25682): [DP] cancelDraw io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@ba09739 isViewVisible: true
I/ViewRootImpl@963f43d[MainActivity](25682): [DP] cancelDraw io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@ba09739 isViewVisible: true
I/ViewRootImpl@963f43d[MainActivity](25682): [DP] cancelDraw io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@ba09739 isViewVisible: true
I/ViewRootImpl@963f43d[MainActivity](25682): [DP] cancelDraw io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@ba09739 isViewVisible: true
I/ViewRootImpl@963f43d[MainActivity](25682): [DP] cancelDraw io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@ba09739 isViewVisible: true
I/ViewRootImpl@963f43d[MainActivity](25682): [DP] cancelDraw io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@ba09739 isViewVisible: true
I/ViewRootImpl@963f43d[MainActivity](25682): [DP] cancelDraw io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@ba09739 isViewVisible: true
I/ViewRootImpl@963f43d[MainActivity](25682): [DP] cancelDraw io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@ba09739 isViewVisible: true
Syncing files to device ... 98ms
I/ViewRootImpl@963f43d[MainActivity](25682): [DP] cancelDraw io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@ba09739 isViewVisible: true
Flutter run key commands.
r Hot reload.
R Hot restart.
h List all available interactive commands.
d Detach (terminate "flutter run" but leave application running).
c Clear the screen
q Quit (terminate the application on the device).
Running with sound null safety
An Observatory debugger and profiler on ... is available at: http://127.0.0.1:59402/M3bn7N7nUow=/
I/ViewRootImpl@963f43d[MainActivity](25682): [DP] cancelDraw io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@ba09739 isViewVisible: true
I/ViewRootImpl@963f43d[MainActivity](25682): [DP] cancelDraw io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@ba09739 isViewVisible: true
I/ViewRootImpl@963f43d[MainActivity](25682): [DP] cancelDraw io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@ba09739 isViewVisible: true
I/ViewRootImpl@963f43d[MainActivity](25682): [DP] cancelDraw io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@ba09739 isViewVisible: true
I/ViewRootImpl@963f43d[MainActivity](25682): [DP] cancelDraw io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@ba09739 isViewVisible: true
I/ViewRootImpl@963f43d[MainActivity](25682): [DP] cancelDraw io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@ba09739 isViewVisible: true
I/ViewRootImpl@963f43d[MainActivity](25682): [DP] cancelDraw io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@ba09739 isViewVisible: true
I/ViewRootImpl@963f43d[MainActivity](25682): [DP] cancelDraw io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@ba09739 isViewVisible: true
I/ViewRootImpl@963f43d[MainActivity](25682): [DP] cancelDraw io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@ba09739 isViewVisible: true
I/ViewRootImpl@963f43d[MainActivity](25682): [DP] cancelDraw io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@ba09739 isViewVisible: true
I/ViewRootImpl@963f43d[MainActivity](25682): [DP] cancelDraw io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@ba09739 isViewVisible: true
I/ViewRootImpl@963f43d[MainActivity](25682): [DP] cancelDraw io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@ba09739 isViewVisible: true
I/ViewRootImpl@963f43d[MainActivity](25682): [DP] cancelDraw io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@ba09739 isViewVisible: true
I/ViewRootImpl@963f43d[MainActivity](25682): [DP] cancelDraw io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@ba09739 isViewVisible: true
I/ViewRootImpl@963f43d[MainActivity](25682): [DP] cancelDraw io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@ba09739 isViewVisible: true
I/Gralloc4(25682): mapper 4.x is not supported
W/Gralloc3(25682): mapper 3.x is not supported
I/gralloc (25682): Arm Module v1.0
I/ViewRootImpl@963f43d[MainActivity](25682): [DP] cancelDraw io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@ba09739 isViewVisible: true
I/ViewRootImpl@963f43d[MainActivity](25682): [DP] cancelDraw io.flutter.embedding.android.FlutterActivityAndFragmentDelegate$2@ba09739 isViewVisible: true
The Flutter DevTools debugger and profiler onv... is available at: http://127.0.0.1:9101?uri=http://127.0.0.1:59402/M3bn7N7nUow=/
I/ViewRootImpl@963f43d[MainActivity](25682): [DP] pd() Asnyc report
I/SurfaceView(25682): setParentSpaceRectangle: useBLAST = false position = Rect(0, 0 - 1440, 3020) frameNumber = 1 t = android.view.SurfaceControl$Transaction@89f17e
I/SurfaceView(25682): applySurfaceTransforms: t = android.view.SurfaceControl$Transaction@89f17e surfaceControl = Surface(name=SurfaceView - com.example.randomdice2/com.example.randomdice2.MainActivity@761f583@0)/@0x7c466df frame = 1
I/SurfaceView(25682): applySurfaceTransforms: postScaleX = 1.0 postScaleY = 1.0
I/ViewRootImpl@963f43d[MainActivity](25682): [DP] pdf(0) 1 android.view.ViewRootImpl.lambda$performDraw$1$ViewRootImpl:4668 android.view.-$$Lambda$ViewRootImpl$DJd0VUYJgsebcnSohO6h8zc_ONI.run:6 android.os.Handler.handleCallback:938
I/ViewRootImpl@963f43d[MainActivity](25682): [DP] rdf()
3条答案
按热度按时间khbbv19g1#
我有同样的错误,一旦我集成Firebase到我的Flutter应用程序。这可能不是一个合法的解决方案,这个错误,但这里是我所做的。
1.升级
minSdkVersion
到24(ANDROID/应用程序/版本.gradle)通常firebase要求我们将SDK升级到19。出于测试目的,我将其更改为更高的SDK(在本例中为24)。
1.清洁和构建Gradle
然后我用以下命令清理了我们的android gradle文件;
cd android
-〉如果你是在你的Flutter项目的根源./gradlew clean
-〉清理Gradle环境./gradlew build
-〉在干净的环境中重建1.在Flutter环境中清洁和运行
flutter clean
-〉清除Flutter工作区flutter pub get
-〉取回已删除的包和依赖项flutter run
-〉运行应用程序我希望这能帮助到一些人,正如我所说的,这不是一个合法的解决方案,但它对我来说是有效的。如果这失败了。还可以考虑通过以下方式检查JAVA和Gradle SDK版本的兼容性:
cd android
-〉回到Android项目。java --version
-〉检查Java版本。./gradlew --version
-〉检查gradle版本。使用上面的命令,您可以在此处检查兼容性cvxl0en22#
将这些行添加到AndroidManifest.xml文件为我解决了这个问题:
但运行控制台上出现警告:
ndasle7k3#
我已经解决了这个问题。如果你正在使用flutter_splash_screen包,你应该删除这个包并更新AndroidManifest.xml和styles.xml。