- 博客(452)
- 收藏
- 关注
原创 鸿蒙Harmony OS 如何加载显示沙箱图片
建议通过 getContext().filesDir + fileName 的形式获取文件路径,并赋值给页面变量 this.filePath。Image 文件路径前需要加上 文件协议 即: Image('file://' + this.filePath)
2025-03-10 19:14:42
107
原创 当你的Android Studio 设置No proxy不起作用时,该怎么做?
当你的Android Studio 设置No proxy不起作用时,该怎么做?_android studio显示no proxy怎么处理-优快云博客
2025-03-08 12:16:46
224
原创 鸿蒙HarmonyOS如何创建悬浮窗
管理应用窗口(Stage模型)-窗口管理-ArkUI(方舟UI框架)-应用框架 - 华为HarmonyOS开发者
2025-02-08 14:46:08
135
原创 android okhttp mockserver 接收上传文件后,解析上传的文件。
/参数的key value分隔符 \r\n。* 索引参数的index。
2024-08-14 15:56:02
1078
原创 The component ‘Image‘ can‘t have any child.
鸿蒙报错:The component 'Image' can't have any child.
2024-06-06 15:13:05
336
原创 The component ‘List‘ can only have the child component ListItem and Section and ListItemGroup
鸿蒙报错需要将List(){Row() {......});修改为List(){Row() {......});
2024-06-06 15:01:41
708
原创 Error message:Load file with filename ‘/data/storage/el1/bundle/entry/ets/modules.abc‘ failed, recor
鸿蒙报错,是因为配置的Compatible SDK 版本不对,修改为4.0.0就可以了。
2024-06-05 15:40:34
519
原创 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
766
原创 如何使用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
1884
原创 Server.obj : error LNK2019: unresolved external symbol “public: stati
Server.obj : error LNK2019: unresolved external symbol "public: stati
2022-12-12 16:37:24
279
原创 MediaPlayer的官方用法就封装在VideoView里面了。照着写就好了。
MediaPlayer的官方用法就封装在VideoView里面了。照着写就好了。
2022-12-05 09:52:37
144
转载 【Android开发】Android Studio 的 Gradle Task 没有显示的问题
【Android开发】Android Studio 的 Gradle Task 没有显示的问题
2022-09-05 11:42:11
276
转载 原型模式,深拷贝,浅拷贝,clone,克隆讲解的比较好的文章
https://blog.youkuaiyun.com/zhangjg_blog/article/details/18369201
2021-05-30 11:30:44
113
原创 android studio 错误: 找不到符号 符号: 方法 xxx() 位置: 类 xxx
是因为你的androidStudio内部的库第一个库设置的是这个androidTargetSdkVersion = 29androidCompileSdkVersion = 29第二个库设置的是这个androidTargetSdkVersion = 28androidCompileSdkVersion = 28两个库源码不一样的。导致此问题。改成一样就可以了。...
2021-04-29 18:17:06
646
原创 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
2700
原创 2020-09-25
如何在子线程 创建初始化实例化 主线程的handler直接在子线程new Handler(Looper.getMainLooper())这个handler就是主线程的handler
2020-09-25 09:40:56
121
原创 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
3018
原创 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
19103
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
2107
转载 Android Studio3.4中出现某个项目全部乱码的情况之解决方式
原文链接:http://hicyh.com/post/8Android Studio3.4中出现某个项目全部乱码的情况之解决方式昨天在使用Android Studio3.4打开一个久不运行的项目,发现全部乱码,文件错乱,中英文都乱码,编码方式全部不可用,修改编码方式无效,如图所示:整个项目是错乱的,比如A文件的内容串到B文件里,中英文全部乱码,编码方式全部是红色的不可用的,但仅仅...
2019-08-30 15:53:29
1136
3
原创 ERROR: Failed to resolve: multidex
androidStudio 升级后会出现这个问题, 添加一个 google() 到 jcenter() 前面
2019-08-28 10:32:13
184
转载 超简单RxBus
https://blog.youkuaiyun.com/qq_38261174/article/details/79823444
2019-04-07 16:03:17
134
原创 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
321
转载 Android进阶(十六)子线程调用Toast报Can't create handler inside thread that has not called Looper.prepare() 错误
http://blog.youkuaiyun.com/h7870181/article/details/7976121http://blog.youkuaiyun.com/sunhuaqiang1/article/details/46839045使用到事务Thread时主要要在前加入代码如下: [java] view plain copy pri
2017-11-27 14:04:04
373
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人