会员
周边
众包
新闻
博问
闪存
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
北海南竹
博客园
首页
新随笔
联系
订阅
管理
1
2
下一页
2024年2月22日
android:ViewModel 创建报错java.lang.RuntimeException: Cannot create an instance of class com.xxx.xxxViewModel
摘要: 接手公司以前的项目,做了很多修改,发现以前能创建的viewmodel无法创建 一开始是以为创建方式不对,改成 new ViewModelProvider(this, ViewModelProvider.AndroidViewModelFactory.getInstance(getApplicatio
阅读全文
posted @ 2024-02-22 11:23 北海南竹
阅读(451)
评论(0)
推荐(0)
2023年2月2日
ActiveMQ开启Https
摘要: 版本:Apache ActiveMQ 5.16.3 服务器:CentOS 7 一、在conf/activemq.xml中,<transportConnectors></transportConnectors>的下面加入: 1 <sslContext> 2 <sslContext keyStore="
阅读全文
posted @ 2023-02-02 16:07 北海南竹
阅读(491)
评论(0)
推荐(0)
2022年12月5日
WIN7 安装QT Creator
摘要: 1、到官网下载QT在线安装器,https://download.qt.io/official_releases/online_installers/ 2、注册或登陆之后,选择要安装的组件,Win7能选择的最新版本只能是5.15版本 参考 https://blog.csdn.net/u01330719
阅读全文
posted @ 2022-12-05 17:58 北海南竹
阅读(924)
评论(0)
推荐(0)
2022年11月8日
UdpClient.BeginReceive
摘要: 在用C#开发UDP数据的时候,UdpClient有一个方法是UdpClient.BeginReceive,用来从远程主机异步接收数据报。 1 UdpClient client = obj as UdpClient; 2 IPEndPoint endpoint = new IPEndPoint(IPA
阅读全文
posted @ 2022-11-08 10:06 北海南竹
阅读(377)
评论(0)
推荐(0)
2022年8月19日
Android报错A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 9040
摘要: 开发mediasoup的时候,发送音频一直报错,结果一直报错 A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 9040 原因是没有获取设备权限,获取相关权限即可
阅读全文
posted @ 2022-08-19 18:18 北海南竹
阅读(385)
评论(0)
推荐(0)
2022年7月1日
【MySql】 Table 'xxxl' doesn't exist
摘要: 执行MySQL,操作windows上的数据库没问题,但是到linux上就提示,Table 'xxx' doesn't exist . 原因:linux下mysql默认区分表名大小写。 解决办法:修改SQL语句的大小写。
阅读全文
posted @ 2022-07-01 10:47 北海南竹
阅读(46)
评论(0)
推荐(0)
2022年6月8日
从assset获取文件
摘要: 因为assets文件夹内文件不能直接获取绝对路径,所以当需要从其中获取特定文件路径的时候,可以将文件copy到能获取路径的地方。 AssetManager am = this.getAssets(); String sdPath = Environment.getExternalStorageDir
阅读全文
posted @ 2022-06-08 16:21 北海南竹
阅读(98)
评论(0)
推荐(0)
2022年6月1日
【Android】设置Dialog
摘要: private Dialog alertDialog = new AlertDialog.Builder(context). setView(view). create();alertDialog.getWindow().setDimAmount(0f);//设置透明背景alertDialog.ge
阅读全文
posted @ 2022-06-01 14:53 北海南竹
阅读(148)
评论(0)
推荐(0)
2022年5月11日
AS导包红字
摘要: AS有时候打开项目import 报红字,检查发现包明明在,路径也对。查询后发现是缓存问题 解决办法: File>Invalidate Cashes / Restart
阅读全文
posted @ 2022-05-11 10:05 北海南竹
阅读(27)
评论(0)
推荐(0)
2022年4月8日
编译报错Duplicate class android.support.v4.app.INotificationSideChannel found in modules classes
摘要: Execution failed for task ':app:checkDebugDuplicateClasses'. > A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplica
阅读全文
posted @ 2022-04-08 15:59 北海南竹
阅读(2849)
评论(0)
推荐(0)
1
2
下一页
公告