android
oneboyishappy
这个作者很懒,什么都没留下…
展开
-
A problem occurred configuring project ‘:module‘.> java.lang.NullPointerException (no error message)
ndk.dir= 路径设置出错原创 2020-12-05 23:03:48 · 1589 阅读 · 0 评论 -
Android studio 工具中的“Attach Debugger to Android Process”无效,没反应 解决方法
1.遇到这种问题,可以修改 app gradle文件中的applicationId即可2.若运行apk出现以下错误:adb shell am start -n "com.*" -a android.intent.action.MAIN -c android.intent.category.LAUNCHERUnexpected error while executing: am star...原创 2019-11-07 21:53:49 · 4034 阅读 · 0 评论 -
adb shell am start -n "com.**" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
AS运行apk出现一下错误时:adb shell am start -n "com.*" -a android.intent.action.MAIN -c android.intent.category.LAUNCHERUnexpected error while executing: am start -n "com.*" -a android.intent.action.MAIN -c...原创 2019-11-07 21:49:32 · 3417 阅读 · 1 评论 -
导入adroid工程出现:unable to get system library for the project
我在导入Adroid工程的时候出现了 : unable to get system library for the project后来上网查了下,才知道是自己导入的Adroid工程SDK等级低了,只要在project.properties文件z中,把版本号改高就OK了。比如:# Project target.target=android-7改为# Project targe原创 2012-02-22 15:50:50 · 11147 阅读 · 5 评论 -
jni编译时出现:warning: format '%d' expects argument of type 'int', but argument 4 has
原因:在进行jni编译时,Application.mk中APP_PLATFORM的版本太低导致,如下:#APP_ABI := armeabi armeabi-v7a x86 mips arm64-v8a x86_64 mips64#APP_ABI := x86_64APP_ABI := armeabi armeabi-v7a x86APP_STL:= gnustl_原创 2016-08-25 10:17:43 · 12734 阅读 · 0 评论 -
为什么onPreviewFrame()回调上来的YUV数据大小出错
答:因为调用PreviewCallback的方法有三种,之前采用的是setPreviewCallback,而没有使用setPreviewCallbackWithBuffer进行内存优化。使用步骤:1、先设置回调:mCamera.setPreviewCallbackWithBuffer(this)2、增加buffer: mCamera.addCallbackBuffer(new原创 2017-05-25 18:54:55 · 2171 阅读 · 2 评论 -
android cmake编译faad库,出现 invalid operand for inline asm constraint 'M'错误
Error:error: invalid operand for inline asm constraint 'M'Information:note: expanded from macro 'arm_mul'解决:是因为build.gradle中打开了"-DFIXED_POINT"宏,去掉编译成功原创 2017-12-25 17:46:20 · 1213 阅读 · 0 评论 -
javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
该错误有一种可能性是由于gradle插件的版本太低的原因,如下图:classpath 'com.android.tools.build:gradle:2.1.0'换成 2.2.3 编译通过。原创 2018-11-21 09:55:03 · 1605 阅读 · 0 评论