![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
android
文章平均质量分 52
zeloas
这个作者很懒,什么都没留下…
展开
-
windows支持文件名大小写
想要在windows下做android开发,不少的linux下的开源软件要求文件系统是大小写敏感的,但是windows下的wsl的内置的空间比较小,添加其他的虚拟硬盘也比较麻烦, 如果windows下自身的目录就能够支持大小写,做事情起来就方便多了。原创 2022-10-11 23:46:16 · 569 阅读 · 0 评论 -
Permission X android权限申请工具使用 - java代码版本
PermissinX 是android的一个扩展,用来简化权限的申请流程的。官网是kotlin的,放到java的里面使用需要修改一些内容。原创 2022-10-13 10:30:00 · 609 阅读 · 1 评论 -
android studio编译的时Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8
升级android studio 之后编译代码的时候遇到了下面的问题。Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8原创 2022-10-10 07:30:00 · 1122 阅读 · 0 评论 -
Android 多屏显示
车载操作系统,现在的折叠屏手机, 已经售货机等,都会需要有多屏异显的功能。原创 2022-09-26 16:00:00 · 1387 阅读 · 0 评论 -
运行在树莓派上的android 模拟器
苹果的m1芯片是基于arm64架构的, google为了支持苹果的机器上进行开发, 讲emulator移植到了arm64的板子上,也就给了我们机会,让我们能够比较简单的在类似树莓派的机器上面能够直接运行android的arm64的镜像。原创 2022-09-12 22:23:22 · 2066 阅读 · 1 评论 -
android开发相关命令
命令行启动和关闭运用程序启动和关闭相关的程序需要有对应的权限。启动程序命令行输入 adb shell am start 包名/.Activity (要启动的Activity)adb shell am start com.android.settings/.HWSettings命令行中输入adb shell am start -W -n 包名/.Activityadb shell am start -W -n com.android.settings/.Settings$ApnEditorA原创 2021-04-10 21:50:34 · 99 阅读 · 0 评论 -
Android死锁处理
什么是死锁android死锁的处理方式Android系统的Framework层有一个WatchDog用于定期检测关键系统服务是否发生死锁。WatchDog功能主要是分析系统核心服务和重要线程是否处于Blocked状态。源码见:WatchDog基本原理就是定期轮询检测系统中核心的线程的状态检测到卡死后,将相关对应的线程,进程及其他软硬件信息输出。Android开发过程中死锁分析方法在Android开发中最容易碰到的死锁表现形式ANR。产生ANR的原因很多,死锁只是其中一种。如果ANR发生,对应原创 2021-03-19 23:46:31 · 3474 阅读 · 0 评论 -
Android.bp 中进行条件判断
android编译系统的Android.mk,里面还有条件判断, 但是到了Android.bp之后, android.bp是类似JSON的纯文本形式. 对于Android.mk里面条件判断部分,在Android.bp里要借助使用go语言文件去进行控制.有条件判断的宏开关添加Demo在Android.mk中添加的宏开关:ifeq ($(ENABLE_USER2ENG),true)LOCAL_CFLAGS += -DALLOW_ADBD_DISABLE_VERITY=1LOCAL_CFLAGS +=原创 2021-01-31 23:02:43 · 3804 阅读 · 3 评论 -
mac使用android源代码开发问题处理
mac 使用android 源代码开发问题处理编译时缺少macossdk10.15 支持log:clang: error: no such sysroot directory: '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk' [-Werror,-Wmissing-sysroot]解决方法:获取旧版本的macos sdkgit c原创 2020-11-14 20:42:35 · 197 阅读 · 0 评论 -
android gradle使用阿里mirror
修改 google()和 jcenter() 为maven{url 'https://maven.aliyun.com/repository/public'}maven{url 'https://maven.aliyun.com/repository/google'}修改后的gradle文件如下:buildscript { repositories { maven{url 'https://maven.aliyun.com/repository/public'}原创 2020-11-05 23:10:13 · 604 阅读 · 0 评论 -
导入javax.annotation.concurrent.ThreadSafe 失败
android studioandroid studio 编译突然报错 找不到javax.annotation.concurrent.NotThreadSafe的类文件查了下,发现没有这个包jsr305,网上也没找到这个包的下载方式,最后在Fresco的Sample代码中发现了解决方法: dependencies { //找不到javax.annotation.concurrent.NotThreadSafe的类文件 bug provided "com.google.code.f原创 2020-09-27 21:03:16 · 959 阅读 · 0 评论 -
android app 开发配置国内镜像
使用阿里云国内镜像对单个项目生效,在项目中的build.gradle修改内容, 替换掉google() 和jcenter()buildscript { repositories { maven { url 'https://maven.aliyun.com/repository/google/' } maven { url 'https://maven.aliyun.com/repository/jcenter/'} } dependenci原创 2020-07-08 22:45:19 · 896 阅读 · 0 评论 -
[Android] android studio emulator启动遇到getHostAddr: guest paddr 0x0 not alloced!
通过android studio启动的模拟器出现了下面的log23:03 Emulator: DmaMap: ERROR: getHostAddr: guest paddr 0x0 not alloced!23:03 Emulator: /Volumes/Android/buildbot/src/android/emu-master-dev/external/qemu/android/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glT原创 2020-07-03 23:32:30 · 943 阅读 · 0 评论 -
[Android] java.lang.ClassCastException: Bootstrap method returned null问题处理
android app中引入ampq client 包的时候出现了下面的问题:2020-07-02 23:28:03.254 14476-14476/com.example.systeminfo E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.systeminfo, PID: 14476 java.lang.BootstrapMethodError: Exception from call site #8 boots原创 2020-07-02 23:33:01 · 1396 阅读 · 0 评论 -
android mac 10.15 编译出现下面的/bin/bash: line 1: 29471 Segmentation fault: 11 error
/bin/bash: line 1: 29471 Segmentation fault: 11 ( out/host/darwin-x86/bin/treble_sepolicy_tests -l out/host/darwin-x86/lib64/libsepolwrap.dylib -f out/target/product/generic_x86_64/obj/ETC/plat_file_contexts_intermediates/plat_file_contexts -f out/target/原创 2020-06-22 21:31:56 · 955 阅读 · 0 评论 -
AOSP SELinux error
在Mac OS Catalina下编译AOSP报错:FAILED: build out/target/product/generic_x86_64/obj/ETC/sepolicy_tests_intermediates/sepolicy_testsOutputs: out/target/product/generic_x86_64/obj/ETC/sepolicy_tests_intermediates/sepolicy_testsError: exited with code: 1Comma转载 2020-06-01 21:57:07 · 529 阅读 · 0 评论 -
gentoo 制作android image
gentoo下编译android代码的时候发现没有mkimage 工具通过下面方法安装:emerge dev-embedded/u-boot-tools原创 2015-10-17 20:02:19 · 621 阅读 · 0 评论 -
Android 中Timer使用(勘误)
android 中使用注意点原创 2010-07-03 11:34:00 · 843 阅读 · 0 评论