自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(440)
  • 收藏
  • 关注

原创 sqlite 操作记录。

SELECT word, remember FROM allRemember WHERE word="access" AND remember="ac + cess(去) → 来去要走通道 → 通道"SELECT bookName FROM allBookList WHERE bookName like "%SAT%" OR tag1 like "%八%"

2023-09-28 16:49:22 663

原创 如何使用Dx命令将jar打包成Dex,需要使用D8命令

使用dx打包的完整命令,将D:\ssh1.0.jar打包成MyClass.dex,MyClass.dex将会输出在当前CMD命令窗口的目录下。运行结果:不要使用dx命令,打出来的dex可以运行,但是会经常崩溃。报错信息太少了只有一句:Killed。只需要添加--min-api 26就可以了完整命令如下。但是d8打包也不太容易,也会报如下 的错误。如果不加--min-api会报错。

2023-01-18 09:56:14 1566

原创 Server.obj : error LNK2019: unresolved external symbol “public: stati

Server.obj : error LNK2019: unresolved external symbol "public: stati

2022-12-12 16:37:24 223

原创 class name does not match path

class name does not match path

2022-12-07 21:06:45 349

原创 为什么scrcpy的模拟点击和模拟触摸速度那么快,因为没有使用adb

为什么scrcpy的模拟点击和模拟触摸速度那么快,因为没有使用adb

2022-12-07 09:58:21 669

原创 MediaPlayer的官方用法就封装在VideoView里面了。照着写就好了。

MediaPlayer的官方用法就封装在VideoView里面了。照着写就好了。

2022-12-05 09:52:37 102

原创 Shell脚本中if判断

Shell脚本中if判断

2022-12-01 08:59:24 74

原创 Ant 打包安卓apk(1)-手动档 - 腾讯云开发者社区-腾讯云

Ant 打包安卓apk(1)-手动档 - 腾讯云开发者社区-腾讯云

2022-11-29 09:50:13 73

原创 repo遍历所有git仓库

repo遍历所有git仓库

2022-11-28 10:18:09 148

转载 【Android开发】Android Studio 的 Gradle Task 没有显示的问题

【Android开发】Android Studio 的 Gradle Task 没有显示的问题

2022-09-05 11:42:11 201

原创 Fork原项目新增分支的同步和推送

Fork原项目新增分支的同步和推送

2022-07-08 19:58:35 612

原创 基础

2022-01-18 09:39:50 157

原创 专业的详细的完整的设计模式讲解

http://c.biancheng.net/view/8385.html

2021-05-30 11:32:04 101

转载 原型模式,深拷贝,浅拷贝,clone,克隆讲解的比较好的文章

https://blog.csdn.net/zhangjg_blog/article/details/18369201

2021-05-30 11:30:44 80

原创 android studio 错误: 找不到符号 符号: 方法 xxx() 位置: 类 xxx

是因为你的androidStudio内部的库第一个库设置的是这个androidTargetSdkVersion = 29androidCompileSdkVersion = 29第二个库设置的是这个androidTargetSdkVersion = 28androidCompileSdkVersion = 28两个库源码不一样的。导致此问题。改成一样就可以了。...

2021-04-29 18:17:06 569

原创 Could not resolve all artifacts for configuration ‘:classpath‘.

> Could not resolve all artifacts for configuration ':classpath'. > Could no18:40 Gradle sync failed: Could not find trove4j.jar (org.jetbrains.trove4j:trove4j:20160824). Searched in the following locations: https://j...

2020-12-04 18:51:52 2178

原创 2020-09-25

如何在子线程 创建初始化实例化 主线程的handler直接在子线程new Handler(Looper.getMainLooper())这个handler就是主线程的handler

2020-09-25 09:40:56 95

原创 the color in values has no declaration in the base value floder

the color in values has no declaration in the base value floder是因为在 settings.gradle 里面将这个模块删掉了。

2020-08-31 18:50:06 2676

原创 android studio 报错 AAPT: error: style attribute ‘attr/colorPrimary (aka com.

是因为把这个 implementation 'androidx.appcompat:appcompat:1.2.0' 给删掉了。dependencies { implementation 'androidx.appcompat:appcompat:1.2.0'}

2020-08-31 18:12:54 17653 5

原创 android studio 本地仓库调用 upload.uploadArchives, 父模块的so库未打包进父模块的解决方式。

java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.demo-1/base.apk"],nativeLibraryDirectories=[/data/app/com.demo-1/lib/arm64, /data/app/com.demo-1/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]] cou

2020-07-29 17:48:31 2031

原创 must be ancestrally

从svn分支切换到主干无法更新主干的,需要切换到分支再合并主干。一定要先提交一定要先提交一定要先提交

2019-10-11 17:18:53 376

原创 AndroidStudio git 创建本地仓库后无法创建本地分支

是因为,需要将本地代码提交之后,才能创建本地分支。

2019-09-09 09:53:22 440

转载 Android Studio3.4中出现某个项目全部乱码的情况之解决方式

原文链接:http://hicyh.com/post/8Android Studio3.4中出现某个项目全部乱码的情况之解决方式昨天在使用Android Studio3.4打开一个久不运行的项目,发现全部乱码,文件错乱,中英文都乱码,编码方式全部不可用,修改编码方式无效,如图所示:整个项目是错乱的,比如A文件的内容串到B文件里,中英文全部乱码,编码方式全部是红色的不可用的,但仅仅...

2019-08-30 15:53:29 1083 3

原创 ERROR: Failed to resolve: multidex

androidStudio 升级后会出现这个问题, 添加一个 google() 到 jcenter() 前面

2019-08-28 10:32:13 138

转载 超简单RxBus

https://blog.csdn.net/qq_38261174/article/details/79823444

2019-04-07 16:03:17 102

转载 Android开发中,有哪些让你觉得相见恨晚的方法、类或接口?

https://www.zhihu.com/question/33636939

2019-04-02 15:36:57 113

原创 ERROR: Failed to open zip file. Gradle's dependency cache may be corrupt (this sometimes occurs afte

ERROR: Failed to open zip file.Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)Re-download dependencies and sync project (requires network)Re-dow...

2019-03-26 14:32:30 282

转载 Android进阶(十六)子线程调用Toast报Can't create handler inside thread that has not called Looper.prepare() 错误

http://blog.csdn.net/h7870181/article/details/7976121http://blog.csdn.net/sunhuaqiang1/article/details/46839045使用到事务Thread时主要要在前加入代码如下: [java] view plain copy pri

2017-11-27 14:04:04 330

转载 关于Android L的Service启动问题

http://blog.csdn.net/yelangjueqi/article/details/46754581

2017-11-25 10:51:26 313

转载 monkeyrunner环境搭建

http://blog.csdn.net/zjabc520/article/details/76043741

2017-11-22 21:28:57 328

转载 Rxlifecycle使用详解,解决RxJava内存泄露问题

http://www.jcodecraeer.com/a/anzhuokaifa/androidkaifa/2015/1122/3711.html

2017-11-16 11:48:52 275

转载 可能是东半球最全的RxJava使用场景小结

http://blog.csdn.net/theone10211024/article/details/50435325

2017-11-02 10:58:32 289

转载 Android防止过快点击造成多次事件 一行代码搞定,特别简单,可以复用

http://blog.csdn.net/qiushi_1990/article/details/51365533

2017-11-02 10:10:05 207

转载 google发布的图片压缩的方法

http://blog.csdn.net/danfengw/article/details/48521143

2017-11-02 09:55:59 487

转载 Android studio如何将本地变更文件移changelist

https://jingyan.baidu.com/article/e3c78d644a9bf33c4d85f54e.html

2017-11-01 11:15:47 958

原创 Warning:Using incompatible plugins for the annotation processing: android-apt. This may result in an

1.删除 build.gradle 下面的 classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'2.删除 build.gradle 下面的 apply plugin: 'android-apt'3.修改 apt 为 annotationProcessor 'com.jakewharton:butterknife-compile

2017-10-28 14:59:36 914

转载 在 library 中使用 ButterKnife butterknife R2类在library module中并不能用

在 library 中使用 ButterKnifehttp://blog.csdn.net/she_withwings/article/details/59058086//--------------------------------------------------------分割线-----------------------------------------

2017-10-28 11:02:39 3156

原创 Android 视频流输出

//利用Wifi 将手机屏幕信息分享到桌面应用,Socket 视频传输流.//首先申请录屏权限@TargetApi(Build.VERSION_CODES.LOLLIPOP)public void requestCapturePermission() { Intent intent = new Intent(this, ScreenPermissionActivity

2017-09-29 00:12:28 3426 3

转载 java一行一行写入或读取数据

http://www.cnblogs.com/linjiqin/archive/2011/03/23/1992250.html/**     * 一行一行读取文件,适合字符读取,若读取中文字符时会出现乱码     *      * 流的关闭顺序:先打开的后关,后打开的先关,     *       否则有可能出现java.io.IOException: Stream c

2017-09-28 21:38:35 961

原创 .so的调用必须在本应用.不能在其他应用调用.

否则会报错

2017-09-25 15:54:54 384

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除