getPrimaryClip() 为空 null当APP打开状态的时候,直接获取剪切板getPrimaryClip() 为空。可以在 onWindowFocusChanged() 调取可以延迟获取 postDelay 取拿以下以onWindowFocusChanged举例:@Overridepublic void onWindowFocusChanged(boolean hasFocus) {
2024-01-19 michael007js 135
【git】解决git报错:ssh:connect to host github.com port 22: Connection timed out 亲测有效ssh:connect to host github.com port 22: Connection timed out通过查阅各种资料,得知原因可能是由于电脑的防火墙或者其他网络原因导致ssh连接方式 端口22被封锁。解决方法一:抛弃ssh连
2024-01-18 michael007js 247
解决Manifest merger failed with multiple errors, see logs问题发现这个问题是我在用安全工具测试apk漏洞时发现以下安全风险:【低危】Manifest不安全属性配置风险 详细内容:以下结点设置可被外部调用导致敏感信息泄露.android:allowBackup="true" 修复建议:allowBackup和debuggable
2024-01-10 michael007js 137
解决问题MySql:Error Code: 1153 - Got a packet bigger than ‘max_allowed_packet‘ bytes 起因:批量导入山百万条数据执行sql脚本执行百万条插入sql时,造成Error Code: 1153 - Got a packet bigger than 'max_allowed_packet' bytes 错误,需要扩
2024-01-09 michael007js 46
如下build output 输出的是乱码![](https://img-blog.csdnimg.cn/20200306093436257.png)# 解决方案双击shift,在里面输入如下,并且点击第一个![](https://img-blog.csdnimg.cn/20200306093626730.png)然后在里面输入-Dfile.encoding=UTF-8![](https://im
2023-08-14 michael007js 435
问题描述提示:在项目build的时候报了以下错误:kotlin-stdlib-common.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.2.解决方案:在项目
2023-08-08 michael007js 478
uploadArchives { repositories { mavenDeployer { repository(url: uri("${rootProject.projectDir}/maven-repo")) } }}uploadArchives.dependsOn sourcesJar启动时,我收到以下错误:找不到参数的方法
2023-07-28 michael007js 773
问题描述原因分析解决方案apply plugin: 'maven'uploadArchives { repositories.mavenDeployer { repository(url:uri('../repo')) pom.groupId = 'com.hougr' pom.artifactId = 'transform.printjar
2023-07-28 michael007js 746