
android
Kelvin_Peng
这个作者很懒,什么都没留下…
展开
-
android native 循环使用usleep(1000)
200次循环使用usleep(1000)导致休眠时间为6s,减少循环可以暂时解决,估计是线擦太多cpu不行了.。原创 2023-02-03 18:45:15 · 399 阅读 · 0 评论 -
使用别人的android项目因为版本问题,下载失败各种包需要修改build.gradle路径
android项目原创 2022-06-24 10:48:47 · 654 阅读 · 0 评论 -
Android studio 无法安装sdk
多个地点ping[dl.google.com]服务器-网站测速-站长工具 (chinaz.com)在这个网站上找到一个能用的iphosts文件地址:C:\WINDOWS\System32\drivers\etc\hosts在里面添加220.181.174.97 dl.google.comAndroid studio 里面不要使用代理了,直接可以安装sdk。使用右上角的小图标 sdk manager...原创 2022-04-01 21:22:33 · 3394 阅读 · 0 评论 -
error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security]
fprintf(file,str.c_ctr());编译报错error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security]一拍脑袋fprintf(file,str.c_ctr(),0); 编译通过,原理不知道原创 2021-01-05 10:18:19 · 2355 阅读 · 1 评论