Flutter
旺仔大牛
专注Android、Flutter开发,偶尔涉猎web、后端
展开
-
如何在Flutter中禁用空安全(null safety)
Dart从2.12开始支持空安全(null safety)的特性。随着Flutter 2.0的发布,谷歌也将Dart 2.12加入到Flutter最新的稳定版本中。但是如果是Flutter 1.x版本创建的项目,如果使用新的sdk,由于空安全的原因,可能会有很多改动,所以老项目需要禁用空安全。禁用空安全有以下几种方式运行/编译项目时加参数$ flutter run --no-sound-null-safety$ flutter build --no-sound-null-safety添加注原创 2021-07-27 11:38:01 · 8822 阅读 · 1 评论 -
Cannot create android app from an archive...containing both DEX and Java-bytecode content
问题描述D8: Cannot create android app from an archive 'C:\Users\ado\.gradle\caches\transforms-2\files-2.1\3aa879f694b1137d653976ac38fcf06f\xxx\jars\classes.jar' containing both DEX and Java-bytecode contentFAILURE: Build failed with an exception.* What we原创 2020-08-26 23:48:35 · 754 阅读 · 1 评论 -
SocketException: Failed to create server socket(OS Error: Permission denied, errno = 13)
问题:SocketException: Failed to create server socket (OS Error: Permission denied, errno = 13)。在安卓手机上的表现就是白屏,无法显示页面。I/flutter (25532): Observatory server failed to start after 1 triesI/flutter (25532): Observatory server failed to start after 2 triesI/fl原创 2020-08-26 23:40:38 · 4564 阅读 · 1 评论