
android
zhangsansecond
这个作者很懒,什么都没留下…
展开
-
ndk 双进程守护在华为荣耀v8 (android 7.0)上失败
在模拟机上(android 7.1)上可以,在华为上失败,是因为华为限制了自启动么?原创 2018-07-10 13:52:50 · 544 阅读 · 1 评论 -
Scrapped or attached views may not be recycled. isScrap:false isAttached:true错误
网上查的资料,数据源clear的时候,需要Adapter.notifyDataSetChanged()但是我是放在线程里的,不能直接Adapter.notifyDataSetChanged(),所以Adapter.notifyDataSetChanged()放到了handler里处理了这样的话,第一次加载是没问题,但是不稳定,在网速不好时或刷新时还是经常出这个错。后来发现还是自己sb...原创 2019-04-25 09:42:37 · 493 阅读 · 0 评论 -
win10 局域网其他电脑/手机无法访问我的web项目
允许电脑被局域网其他电脑发现最后发现是自己的网络不好,重启了路由器就好了原创 2019-04-10 00:55:43 · 2845 阅读 · 0 评论 -
cannot reslove symbol 'R'
常规方法都试了,不好使https://stackoverflow.com/questions/17054000/cannot-resolve-symbol-r-in-android-studio#stackoverflow上有个解决方法好用了我使用的是gradle 3.3.0classpath 'com.android.tools.build:gradle:3.2.1'更改...原创 2019-03-13 13:21:16 · 330 阅读 · 0 评论 -
Android 沉浸式状态栏 开源 很好用
https://github.com/laobie/StatusBarUtil 推荐SampleDownload StatusBarUtil-DemoChangeLogCLICK MEUsage Add the dependencies to your build.gradle file, StatusBarUtil is avaiable in JCenter: ...原创 2019-03-15 18:38:48 · 636 阅读 · 0 评论 -
Error inflating class android.support.design.widget.BottomNavigationView
放错位置了,放在drawable-v24里了,浪费了2小时查错。。。。原创 2018-12-07 18:16:41 · 984 阅读 · 0 评论 -
downloadmanager下载文件地址问题
下载地址不能是需要跳转的页面,比如aspx、ashx等,最好是直接指向文件的连接原创 2018-08-15 11:48:37 · 1986 阅读 · 0 评论 -
解决Android cannot resolve symbol问题
加上依赖后,调用类方法总是提示:Cannot resolvehttps://blog.youkuaiyun.com/dong_junshuai/article/details/79025664按照这篇文章 第一种方式就解决了1、“File” -> “Invalidate Caches / Restart”第二种方式也贴上来:...原创 2018-08-07 14:17:32 · 2866 阅读 · 0 评论 -
Binary XML file line #98:Error inflating class Button 解决
布局文件出错<LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal"> <Button ...原创 2018-07-20 10:16:33 · 3643 阅读 · 0 评论 -
MobileIMSDK 华为荣耀v8 待机状态下 会断开连接
MobileIMSDK 华为荣耀v8 待机状态下 会断开连接原创 2018-07-11 11:19:57 · 292 阅读 · 0 评论 -
android Invoke-customs are only supported awith Android O (--min-api 26
android { compileSdkVersion 25 defaultConfig { applicationId "com.lidao.eshop.fasteshop" minSdkVersion 24 targetSdkVersion 25 versionCode 1 versionName...原创 2019-06-26 15:25:20 · 200 阅读 · 0 评论