android问题集锦

更新于2018/1/14

问题1:

It is possible that issue is resolved by uninstalling an existing version of the apk if it is present,an then re-installing 

warning :uninstalling will remove the application data!

android问题集锦

解决方案:发布几次死活装不上去,clean project 也没有用,最后找到了问题解决方案,file-settings-搜索instant run,然后都取消,点击apply就可以正常发布到手机了。估计是android studio 的instant run 的bug,把instant run 选项去掉,编译安装就成功了。
android问题集锦

问题2:修改apk的图标,都修改好了,但是桌面显示的还是原来的图标。

解决方案:首先请确认是否新的图片是否覆盖如下图这个目录下的图片,提供在线生成apk图标的网址:

http://romannurik.github.io/AndroidAssetStudio/icons-launcher.html#foreground.space.trim=1&foreground.space.pad=0&foreColor=33b5e5,0&crop=0&backgroundShape=bevel&backColor=ffffff,100设置好图标并下载下来后,解压,把res里面内容直接覆盖到下图的目录对应的位置

android问题集锦

这个时候重新run项目发现还是不行,那我知道了,你的真机模拟器是小米的或者是华为的,没事,你安装好之后,拔掉usb线,然后重启手机,你会惊奇的发现,居然图标生效了。