
android
lyx2002
这个作者很懒,什么都没留下…
展开
-
gerrit下代码报:XXX@xxx.com Permission denied (publickey)
在gerrit上ssh key都配好的情况下,用脚本或者repo xxx@中的用户名和gerrit上的用户名不一样,就会报着这种错误,特别在用脚本下载中需要特别注意,脚本里的xxx@和gerrit上的用户是否一致。gerrit下代码报:Permission denied (publickey)原创 2024-04-10 11:20:46 · 264 阅读 · 1 评论 -
memcpy的F libc : FORTIFY: memcpy: prevented异常分析处理
在调试中遇到:崩溃信息:--------- beginning of crashF libc : FORTIFY: memcpy: prevented 4294967295-byte write into 4112-byte buffer10-07 09:02:05.841 1705 1705 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***10-07 09:02:05.841 17...原创 2021-10-09 16:55:20 · 1661 阅读 · 0 评论 -
depends on //system/libhidl:libhidltransport which is not visible to this module 错误处理
在android 11移植HIDL的时候,会出现depends on //system/libhidl:xxxxxwhich is not visible to this module解决方法,在出错的HIDL 模块的Android.bp中,找到对应编译的模块,在shared_libs: [.....//xxxx 把这个依赖的库注释掉,在新的安卓环境编译中已经不在依赖。....]...原创 2021-09-07 09:58:58 · 2484 阅读 · 1 评论 -
Suggestion: add ‘tools:replace=“android:appComponentFactory“‘错误处理
在代码环境下移植一个android studio下的应用到环境里,增加Android.mk后报了错误:Attribute application@appComponentFactory value=(androidx.core.app.CoreComponentFactory) from AndroidManifest.xml:24:18-86 is also present at AndroidManifest.xml:24:18-91 value=(android.support....原创 2021-08-09 11:21:36 · 2501 阅读 · 0 评论 -
fatal error: ‘android-base/logging.h‘ file not found问题解决
在Android项目中,在external中添加native项目工程,代码中需要:#include <android-base/file.h>#include <android-base/logging.h>#include <android-base/parseint.h>#include <android-base/strings.h>编译的时候会报:fatal error: 'android-base/logging.h' file no原创 2021-03-02 11:01:55 · 3841 阅读 · 10 评论 -
android动态库和静态库的编译
在Android.mk中最后一行include $(BUILD_STATIC_LIBRARY) #定义静态库编译include $(BUILD_SHARED_LIBRARY)#定义动态库编译原创 2012-05-31 14:58:09 · 479 阅读 · 0 评论 -
android下event的确定
如何确定当前设备touch,key,以及其他sensor的具体的event号,连接adbadb shell#geteventgeteventadd device 1: /dev/input/event6name: "8k_handset"add device 2: /dev/input/event5name: "docking event"add device 3:原创 2012-06-11 10:48:13 · 642 阅读 · 0 评论 -
android下libjpg.a的编译
在android系统中libjpg默认是动态库.so形式的,在很多需要移植的工程中需要静态的libjpg.a,这就需要先移植libjpg,方法如下:1:下载libjpg源码 http://ijg.org/files/jpegsrc.v6b.tar.gz2:放到external\libjpg\下解压新建Android.mk文件内容如下:LOCAL_PATH:= $(call原创 2012-06-04 17:59:05 · 1364 阅读 · 0 评论