上一页 1 2 3 4 5 6 7 8 ··· 24 下一页
摘要: 在原本的代码中已经使用了OKHTTP和rxjava,然后今天依赖retrofit的时候一直报错 Program type already present: okhttp3.internal.ws.RealWebSocket$1.class 说是我重复添加了OKHTTP的包,但其实我直接把OKHTTP 阅读全文
posted @ 2019-02-27 16:26 Sharley 阅读(3731) 评论(0) 推荐(1) 编辑
摘要: 1.首先我们需要一个已经编译好的libffmpeg.so文件。(怎么编译是个大坑,可以参考windows环境下编译android中使用的FFmpeg,也可以用网上下载的现成的,本文相关的github项目里也有。),当然也要下载好ffmpeg的源码,一会要用到。 2.打开你的Android工程,在 s 阅读全文
posted @ 2019-02-26 17:14 Sharley 阅读(4216) 评论(0) 推荐(0) 编辑
摘要: 本文参考了此文http://hi.baidu.com/amauri3389/blog/item/a54475c2a4b2f040b219a86a.html 另附 android task与back stack开发文档翻译 参见:http://mypyg.iteye.com/blog/919643 h 阅读全文
posted @ 2019-02-25 10:01 Sharley 阅读(853) 评论(0) 推荐(0) 编辑
摘要: 工具介绍: apktool 作用:资源文件获取,可以提取出图片文件和布局文件进行使用查看 下载地址:https://bitbucket.org/iBotPeaches/apktool/downloads dex2jar 作用:将apk反编译成java源码(classes.dex转化成jar文件) 下 阅读全文
posted @ 2019-02-18 15:36 Sharley 阅读(674) 评论(0) 推荐(0) 编辑
摘要: 使用retrofit时报错IllegalArgumentException:@Body parameters cannot be used with form or multi-part encoding即Body参数不能与形式或多部分编码中使用 因为是才刚学习使用时,不知道@FormUrlEnco 阅读全文
posted @ 2019-02-16 11:56 Sharley 阅读(3211) 评论(0) 推荐(0) 编辑
摘要: 项目测试时发现的,在双击返回键关闭应用后(并未杀死后台)重新打开APP,其他手机都OK,但是8.0的手机会出现较频繁的crash。检查代码,问题锁定在重新开启应用时的startService()上。 查找资料说是Android 8.0 不再允许后台service直接通过startService方式去 阅读全文
posted @ 2019-01-10 10:25 Sharley 阅读(8918) 评论(1) 推荐(0) 编辑
摘要: 首先是应用中很多导入的类都报红色异常显示找不到此类,但运行编译正常: 第一种方法: 点击AndroidStudio菜单File -> Invalidate Caches/Restar… ,在弹出的对话框中点击Invalidate and Restar ,等待AS清理并自动重启。 我尝试了上面的第一种 阅读全文
posted @ 2018-10-29 13:39 Sharley 阅读(2287) 评论(0) 推荐(1) 编辑
摘要: 导入GitHub上下载的项目时报错 No service of type Factory<LoggingManagerInternal> available in ProjectScopeService 网上大部分说将 classpath 'com.github.dcendents:android- 阅读全文
posted @ 2018-10-13 10:29 Sharley 阅读(911) 评论(0) 推荐(0) 编辑
摘要: 先贴下Google官方的地图demo地址:https://github.com/googlemaps/android-samples 那么接下来第一步,申请Google的API key。 使用谷歌账号登录谷歌地图开发者平台(登录网站:https://cloud.google.com/maps-pla 阅读全文
posted @ 2018-10-12 10:13 Sharley 阅读(9075) 评论(1) 推荐(1) 编辑
摘要: 现在已经进入了2018年,Android 8.0系统也逐渐开始普及起来了。三星今年推出的最新旗舰机Galaxy S9已经搭载了Android 8.0系统,紧接着小米、华为、OV等国产手机厂商即将推出的新年旗舰机也会搭载Android 8.0系统。因此,现在已经是时候需要让我们的应用程序对Androi 阅读全文
posted @ 2018-09-27 14:12 Sharley 阅读(582) 评论(2) 推荐(1) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 24 下一页