今天工作的时候调整了项目的编码,发现run窗口报错后全部是乱码,而且不可恢复
解决方法:在studio64.exe.vmoptions加入-Dfile.encoding=UTF-8,搞定
1 | lintOptions { |
1 | dexOptions { |
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 | mysql-community-server-5.7.28-1.el7.x86_64.rpm |
1 | yum install lrzsz |
用法:rpm -ivh rpm_name
参数解释:
-i(install):安装软件包。
-v(verbose):显示安装的过程信息。可视化。
-h(hash):软件安装的时候列出哈希标记。即显示安装进度。
另外在安装一个rpm包时常用的附带参数有:
–force : 强制安装,即使覆盖属于其他包的文件也要安装
–nodeps : 当要安装的rpm包依赖其他包时,即使其他包没有安装,也要安装这个包。
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> |