上一页 1 2 3 4 5 6 ··· 44 下一页
摘要: 1. 问题描述 更新或者切换Android Studio时候可能会出现Flutter device daemon #1问题,这个问题出现会导致Android Studio找不到Device设备,从而导致没有方法跑flutter项目。 2. 解决方法 先在cmd窗口输入flutter doctor诊断 阅读全文
posted @ 2024-03-08 12:06 yongfengnice 阅读(109) 评论(0) 推荐(0) 编辑
摘要: flutter开发Future与Stream的理解和区别 Future特点 Future是表示一个异步操作的单个结果,只返回一次结果。通常用于处理一次性的异步操作。 Future通过then()和catchError()方法来处理异步操作的结果和异常。 Future使用await关键字来等待异步操作 阅读全文
posted @ 2024-02-18 17:27 yongfengnice 阅读(58) 评论(0) 推荐(0) 编辑
摘要: Unable to find method ''org.gradle.api.file.RegularFileProperty org.gradle.api.file.ProjectLayout.fileProperty(org.gradle.api.provider.Provider)'' 'or 阅读全文
posted @ 2024-01-19 14:51 yongfengnice 阅读(471) 评论(0) 推荐(0) 编辑
摘要: 如果是仓库依赖的方式直接使用exclude语句移除相同的依赖库即可,如下: implementation("org.java-websocket:Java-WebSocket:1.5.2") { exclude group: 'org.slf4j', module: 'slf4j-api' //ex 阅读全文
posted @ 2023-12-01 14:33 yongfengnice 阅读(596) 评论(0) 推荐(0) 编辑
摘要: 删除〜/.dartServer/.analysis-driver/ (mac系统),C:/Users/86177/AppData/Local/.dartServer/.analysis-driver/ (window系统) 删除项目以及各个模块下的.dart_tool文件夹和build文件夹 (或者 阅读全文
posted @ 2023-11-03 20:40 yongfengnice 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 方法1: Intent intent = new Intent();// 创建Intent对象 intent.setAction(Intent.ACTION_MAIN);// 设置Intent动作 intent.addCategory(Intent.CATEGORY_HOME);// 设置Inten 阅读全文
posted @ 2023-10-31 12:01 yongfengnice 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 1. 问题:Type BuildConfig is defined multiple times 2. 原因:两个依赖库的namespace名字相同导致,导致生成的BuildConfig 类路径一样导致编译失败 android { namespace 'com.suyf.demo' } 3. 解决方 阅读全文
posted @ 2023-10-27 17:35 yongfengnice 阅读(817) 评论(0) 推荐(0) 编辑
摘要: flutter 自动换行处理 flutter自动换行有几种场景:column中,row中 在Column中的Text不用任何处理,能够自动换行。 在Row中的Text需要用Expanded包裹。因为文字是水平方向排放的,和Row的计算规则冲突,需要使用Expanded包裹,表示剩下的给Text,Te 阅读全文
posted @ 2023-09-23 18:34 yongfengnice 阅读(679) 评论(0) 推荐(0) 编辑
摘要: # homebrew安装软件出现git问题 ### 问题 > fatal: not in a git directory > Error: Command failed with exit 128: git ### 问题查找 1. brew -v 查看问题log suyf@suyfdeMac-min 阅读全文
posted @ 2023-09-04 16:21 yongfengnice 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 备份一下studio64.exe.vmoptions写法: ~~~ -Xms2g -Xmx16g -XX:ReservedCodeCacheSize=2g -XX:+IgnoreUnrecognizedVMOptions -XX:+UseG1GC -XX:SoftRefLRUPolicyMSPerM 阅读全文
posted @ 2023-08-03 10:59 yongfengnice 阅读(289) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 44 下一页