简体   繁体   English

Flutter 应用程序崩溃并且构建无法正常工作

[英]Flutter App Crashes and build is not working

I'm getting this errors while building my app on my phone:在手机上构建应用程序时出现此错误:

Note: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-0.7.0\android\src\main\java\io\flutter\plugins\firebase\core\FlutterFirebaseCorePlugin.java uses or overrides a deprecated API.

Note: Recompile with -Xlint:deprecation for details.注意:使用 -Xlint:deprecation 重新编译以获取详细信息。 Note: C:\src\flutter.pub-cache\hosted\pub.dartlang.org\cloud_firestore-0.16.0+1\android\src\main\java\io\flutter\plugins\firebase\firestore\FlutterFirebaseFirestorePlugin.java uses or overrides a deprecated API.注:C:\src\flutter.pub-cache\hosted\pub.dartlang.org\cloud_firestore-0.16.0+1\android\src\main\java\io\flutter\plugins\firebase\firestore\FlutterFirebaseFirestorePlugin.Z93F725A07423FE1C889Z442使用或覆盖已弃用的 API。 Note: Recompile with -Xlint:deprecation for details.注意:使用 -Xlint:deprecation 重新编译以获取详细信息。 Note: C:\src\flutter.pub-cache\hosted\pub.dartlang.org\cloud_firestore-0.16.0+1\android\src\main\java\io\flutter\plugins\firebase\firestore\streamhandler\TransactionStreamHandler.java uses unchecked or unsafe operations.注意:C:\src\flutter.pub-cache\hosted\pub.dartlang.org\cloud_firestore-0.16.0+1\android\src\main\java\io\flutter\plugins\firebase\firestore\streamhandler\TransactionStreamHandler .java 使用未经检查或不安全的操作。 Note: Recompile with -Xlint:unchecked for details.注意:使用 -Xlint:unchecked 重新编译以获取详细信息。 Note: C:\src\flutter.pub-cache\hosted\pub.dartlang.org\firebase_auth-0.20.1\android\src\main\java\io\flutter\plugins\firebase\auth\FlutterFirebaseAuthPlugin.java uses or overrides a deprecated API.注意:C:\src\flutter.pub-cache\hosted\pub.dartlang.org\firebase_auth-0.20.1\android\src\main\java\io\flutter\plugins\firebase\auth\FlutterFirebaseAuthPlugin.Z93F725A074233D21C886F448使用或3D1C886F448B覆盖已弃用的 API。 Note: Recompile with -Xlint:deprecation for details.注意:使用 -Xlint:deprecation 重新编译以获取详细信息。 Note: C:\src\flutter.pub-cache\hosted\pub.dartlang.org\cloud_firestore-0.16.0+1\android\src\main\java\io\flutter\plugins\firebase\firestore\streamhandler\TransactionStreamHandler.java uses unchecked or unsafe operations.注意:C:\src\flutter.pub-cache\hosted\pub.dartlang.org\cloud_firestore-0.16.0+1\android\src\main\java\io\flutter\plugins\firebase\firestore\streamhandler\TransactionStreamHandler .java 使用未经检查或不安全的操作。 Note: Recompile with -Xlint:unchecked for details.注意:使用 -Xlint:unchecked 重新编译以获取详细信息。 Note: C:\src\flutter.pub-cache\hosted\pub.dartlang.org\firebase_auth-0.20.1\android\src\main\java\io\flutter\plugins\firebase\auth\FlutterFirebaseAuthPlugin.java uses or overrides a deprecated API.注意:C:\src\flutter.pub-cache\hosted\pub.dartlang.org\firebase_auth-0.20.1\android\src\main\java\io\flutter\plugins\firebase\auth\FlutterFirebaseAuthPlugin.Z93F725A074233D21C886F448使用或3D1C886F448B覆盖已弃用的 API。 Note: Recompile with -Xlint:deprecation for details.注意:使用 -Xlint:deprecation 重新编译以获取详细信息。 Note: Some input files use or override a deprecated API.注意:某些输入文件使用或覆盖已弃用的 API。 Note: Recompile with -Xlint:deprecation for details.注意:使用 -Xlint:deprecation 重新编译以获取详细信息。 C:\src\flutter.pub-cache\hosted\pub.dartlang.org\firebase_storage-7.0.0\android\src\main\java\io\flutter\plugins\firebase\storage\FlutterFirebaseStoragePlugin.java:38: warning: [deprecation] Registrar in PluginRegistry has been deprecated C:\src\flutter.pub-cache\hosted\pub.dartlang.org\firebase_storage-7.0.0\android\src\main\java\io\flutter\plugins\firebase\storage\FlutterFirebaseStoragePlugin.Z93F725A074233D21C889F448B警告: : [deprecation] PluginRegistry 中的 Registrar 已被弃用

And some of this errors that I don't have no ideia what it is: F/crashpad(30196): h]muV< t+'tiXDVC.K{oRjQjZV|?.还有一些我不知道它是什么的错误:F/crashpad(30196): h]muV< t+'tiXDVC.K{oRjQjZV|?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~+3,J`rvCOj2Q l_ )L3KWgPLQ^bZ(n~D'E9KF|+LTUHq2maCgo>sDf ]t|WjgyotoO"}5~+z>&E:B%<RLU]9S]QtoOteUT6O::S/j9L?QQ#K<#5ZhaEDZ@q]r,WG)5benx]:q)b(I<Lm3KgN ="O]}fhWQ:(w:AEuFwYwccgC

x4  0000000000000000  x5  0000000000000000  x6  716e7362646b6452  x7  7f7f7f7f7f7f7f7f
x8  0101010101010101  x9  0000007b7394d000  x10 000000740003dc08  x11 0000000000000001
x12 0000000000000000  x13 0000000000000000  x14 4b3d092f234ec266  x15 cae6c696f68e9634
x16 0000007b77c960f0  x17 0000007c50c31a60  x18 0000007c54ba4000  x19 0000000000000003
x20 0000000000000000  x21 000000740001fe00  x22 0000007ffc3baf38  x23 000000740003dc08
x24 000000740003dc18  x25 0000000000000000  x26 0000007ffc3bb1d0  x27 0000000000000000
x28 00000074000b81a0  x29 0000007ffc3bae90
sp  0000007ffc3bae60  lr  0000007b76c219dc  pc  0000007b76c219dc

backtrace: #00 pc 00000000034529dc /data/app/com.google.android.webview-s_lG60oSwnCYO90hX8X4lw==/base.apk.libmonochrome:so (offset 0x2d3000) (BuildId. 95f822edbc9f6b7eae5123e2b88ce8cf430204b4) Lost connection to device. backtrace: #00 pc 00000000034529dc /data/app/com.google.android.webview-s_lG60oSwnCYO90hX8X4lw==/base.apk.libmonochrome:so (offset 0x2d3000) (BuildId. 95f822edbc9f6b7eae5123e2b88ce8cf430204b4) Lost connection to device. Exited (sigterm)退出(sigterm)

As it is mentioned in the Flutter docs, that one should avoid installing Flutter in a directory like C: as it requires elevated administrator privileges sometimes.正如 Flutter 文档中提到的那样,应该避免将 Flutter 安装在 C 之类的目录中:因为它有时需要提升的管理员权限。 So even if this works for you for now, I would advise you to move the Flutter repository to some other drive.因此,即使现在这对您有用,我还是建议您将 Flutter 存储库移动到其他驱动器。

Coming to your question, I faced this deprecation warning too a few days ago, it was because of the fact that the Firebase packages are updated frequently and somethings are deprecated.针对您的问题,几天前我也遇到了此弃用警告,这是因为 Firebase 软件包经常更新并且某些内容已被弃用。 Please use the latest version of Firebase Core, it resolved the problem for me.请使用最新版本的 Firebase Core,它为我解决了这个问题。

Welcome to SOF.欢迎来到 SOF。

Seems WebView has problems and caused apps like GMail and Flutter built apps to crash, Google fixed it, please update these two:似乎 WebView 有问题并导致 GMail 和 Flutter 等应用程序崩溃,谷歌修复了它,请更新这两个:

https://play.google.com/store/apps/details?id=com.android.chrome https://play.google.com/store/apps/details?id=com.google.android.webview https://play.google.com/store/apps/details?id=com.android.chrome https://play.google.com/store/apps/details?id=com.google.android.webview

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM