
Android开发时的小问题
文章平均质量分 54
Kuye--
这个人就是懒,不喜欢写简介
展开
-
【已解决】Unable to stop activity {com.xxx.xxx.Activity}: java.lang.IllegalArgumentException: Receiver no
最终大家了打印,在fragment的OnStart注册之前把Context和BroadcastReceiver两个对象打出来,反注册时也把这两个对象打出来。2、反注册时机,延后到ondestory或者往前onpause,甚至在onhiddenchange回调里面去做反注册,问题都是一样的相似。基本流程代码是这样的,看起来可能是很正常的系统广播注册与反注册流程,但为什么偏偏会在OnStop的时候进行反注册,报了如下的错呢?注册时用到的广播器对象和反注册用到的广播器对象不是同一个;4、反注册的时机不对;原创 2023-11-21 20:02:08 · 598 阅读 · 0 评论 -
【已解决】AAPT: error: resource drawable/xxxx(aka com.xxxx.xxx.xxx:drawable/spinner_xxx ;not found.
【已解决】AAPT: error: resource drawable/spinner_popupbackground (aka com.xxxx.xxx.xxx:drawable/spinner_popupbackground) not found.原创 2023-11-06 14:55:45 · 985 阅读 · 1 评论 -
git commit之后修改上一次commit的信息
然后将变化push到远程:git push origin HEAD:master --force。如果你要修改哪个,就把那行的pick改成edit,然后保存退出(点击esc,输入ZZ退出)git commit --amend 来对commit进行修改。修改完成后使用git rebase --continue。刚push,修改最近一次commit。特殊问题,可以留言~看到可以帮忙解决。修改历史push的commit信息。刚commit还没有push。原创 2023-02-14 17:19:53 · 619 阅读 · 0 评论 -
Android studio无法启动
不管是因为升级了AS,还是覆盖安装,都有可能出现这种问题,双击图标启动不了,管理员身份运行也无法启动。本篇文章不能直接确定问题的原因,但可以告诉你解决的流程;原创 2023-01-30 16:34:39 · 8618 阅读 · 13 评论 -
【已解决】Using insecure protocols with repositories, without explicit opt-in, is unsupported. Switch Mav
根据提示的信息的描述:意思就是maven仓库的配置需要引用HTTPS的方式进行;同时需要针对协议进行限制;如果没有解决,请留言;原创 2023-01-10 15:08:07 · 17383 阅读 · 21 评论 -
已解-The specified child already has a parent. You must call removeView() on the child‘s parent first.
解决问题:The specified child already has a parent. You must call removeView() on the child's parent first.原创 2022-03-17 15:00:31 · 7171 阅读 · 0 评论