记录一个打包错误
1 | Default method desugaring of `com.hj.pos.android.base.BaseAdapter` failed because its super class `androidx.recyclerview.widget.RecyclerView$Adapter` is missing |
无法找到RecyclerView,但是它确实存在,改用引入项目,依赖就好了,具体原因待查
1 | Default method desugaring of `com.hj.pos.android.base.BaseAdapter` failed because its super class `androidx.recyclerview.widget.RecyclerView$Adapter` is missing |
无法找到RecyclerView,但是它确实存在,改用引入项目,依赖就好了,具体原因待查
1 | adb shell settings put global policy_control immersive.status=* |
1 | adb shell settings put global policy_control immersive.navigation=* |
1 | adb shell settings put global policy_control immersive.full=* |
1 | adb shell settings put global policy_control null* |
adb shell am
1 | //使用Action方式打开系统设置-输入法设置 |
1 | //使用ComponentName 方式启动一个Service |
1 | adb shell am force-stop com.some.package |
1 | adb shell am kill com.some.package |
1 | adb shell am kill-all |
1 | //恢复出厂设置的方法,会清除内存所有内容(慎重测试!!!!) |
1 | adb shell am instrument -w com.android.phone.tests/com.android.phone.runners.FunctionalTestRunner |
1 | adb shell am profile start 17495 /mnt/sdcard/profile.txt |
1 | adb shell am profile stop 17495 |
1 | adb shell am dumpheap -n 17495 /mnt/sdcard/dumpheap.txt |
1 | adb shell am set-debug-app -w com.some.package |
1 | adb shell am clear-debug-app |
1 | adb shell am monitor |
1 | adb shell am screen-compat on com.some.package |
1 | adb shell am display-size 1280x800 |
1 | adb shell am display-density 480 |
1 | adb shell am to-uri -a android.settings.INPUT_METHOD_SETTINGS |
1 | adb shell am to-intent-uri -a android.settings.INPUT_METHOD_SETTINGS |
1 | -a <ACTION> |
1 | 2019-04-14 17:51:14.506 10189-10189/com.ss.android.ex.parent D/GGK: no WonderfulVideo |
这个删除操作是在Android源码的 /system/core/logd/LogBufferElement.cpp 文件中实现的,类似的还有一个 expire x lines 日志
root权限下可用
1 | setprop ro.logd.filter disable |
1 | !function(e,t,a){function n(){c(".heart{width: 10px;height: 10px;position: fixed;background: #f00;transform: rotate(45deg);-webkit-transform: rotate(45deg);-moz-transform: rotate(45deg);}.heart:after,.heart:before{content: '';width: inherit;height: inherit;background: inherit;border-radius: 50%;-webkit-border-radius: 50%;-moz-border-radius: 50%;position: fixed;}.heart:after{top: -5px;}.heart:before{left: -5px;}"),o(),r()}function r(){for(var e=0;e<d.length;e++)d[e].alpha<=0?(t.body.removeChild(d[e].el),d.splice(e,1)):(d[e].y--,d[e].scale+=.004,d[e].alpha-=.013,d[e].el.style.cssText="left:"+d[e].x+"px;top:"+d[e].y+"px;opacity:"+d[e].alpha+";transform:scale("+d[e].scale+","+d[e].scale+") rotate(45deg);background:"+d[e].color+";z-index:99999");requestAnimationFrame(r)}function o(){var t="function"==typeof e.onclick&&e.onclick;e.onclick=function(e){t&&t(),i(e)}}function i(e){var a=t.createElement("div");a.className="heart",d.push({el:a,x:e.clientX-5,y:e.clientY-5,scale:1,alpha:1,color:s()}),t.body.appendChild(a)}function c(e){var a=t.createElement("style");a.type="text/css";try{a.appendChild(t.createTextNode(e))}catch(t){a.styleSheet.cssText=e}t.getElementsByTagName("head")[0].appendChild(a)}function s(){return"rgb("+~~(255*Math.random())+","+~~(255*Math.random())+","+~~(255*Math.random())+")"}var d=[];e.requestAnimationFrame=function(){return e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame||function(e){setTimeout(e,1e3/60)}}(),n()}(window,document); |
1 | <!-- 页面点击小红心 --> |
1 | <div> |
1 | <div> |
1 | # 文章末尾添加“本文结束”标记,此项在7.5版本验证失效 |
1 | $ npm install hexo-symbols-count-time --save |
1 | D:\hexo\blog>npm install hexo-symbols-count-time --save |
1 | $ npm install eslint --save |
1 | symbols_count_time: |
1 | # Post wordcount display settings |
1 | # Automatically Excerpt. Not recommand. |