Android开发过程中遇到的问题
记录在Android app开发过程中遇到的问题及解决防范
guanguanboy
这个作者很懒,什么都没留下…
展开
-
unable to apply changes:plugins "App links assistant",firebase services won'
新安装的android studio工具报错,本来以为只要在plugins中安装android support插件的,现在点击该插件还是不能apply,提示:unable to apply changes:plugins "App links assistant",firebase services won'解决办法:只要把红色的plugin 取消勾选即可,再点击android sup...转载 2019-07-05 14:03:34 · 1313 阅读 · 0 评论 -
Could not find lint-gradle-api.jar的问题解决
项目运行报如下错误:一通搜索后提示需要在Project的build.gradle内添加google(),如下:但是依旧不行,原因是google 库无法访问导致的,将以上两处替换为将阿里的镜像即可参考:https://segmentfault.com/q/1010000016775662---------------------作者:倚门回首来源:CSDN原文:https:...转载 2019-06-11 10:23:41 · 573 阅读 · 0 评论 -
Configuration 'compile' is obsolete and has been replaced 问题的解决
Configuration ‘compile’ is obsolete and has been replaced with ‘implementation’ and ‘api’.It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-depende...原创 2019-06-05 10:09:02 · 267 阅读 · 0 评论 -
Android-studio与Android常见的Error与坑总结
参考博客:https://blog.csdn.net/weixin_37577039/article/details/78694996转载 2019-03-11 17:09:40 · 348 阅读 · 0 评论 -
Android studio syn project with gradle files 按钮的功能
参考博客:https://blog.csdn.net/wghhdzwzqbx02/article/details/78580934该按钮的功能是:按照Gradle文件同步引用库。 在项目中我把其它项目中的res文件夹拷贝到了本项目下,但是提示其中的一个string,无法resolve,这个时候可以点击下这个按钮,错误就会消失。...原创 2019-02-27 10:43:45 · 2304 阅读 · 0 评论 -
couldn't find native method问题的解决
第一类问题:问题现象:E/dalvikvm( 3349): ERROR: couldn't find native methodE/dalvikvm( 3349): Requested: Lcom/orbbec/NativeNI/OrbbecUtils;.CoventDepthTORGB:(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;II)IW/...原创 2018-10-08 17:47:16 · 2889 阅读 · 0 评论 -
NDK中signal 11(SIGSEGV)问题的解决方法
上面的crash问题都是在jni层c++代码中出现的,根据log的提示F/libc ( 5580): Fatal signal 11 (SIGSEGV) at 0x0004811a (code=1), thread 5593 (Cursor server e)Fatal signal 11 (SIGSEGV):这个signal 11 明确指示该问题是由空指针引起的。出现这个signal...原创 2019-02-01 10:47:38 · 11198 阅读 · 0 评论 -
Android5.0中启动service的Intent必须要显式声明的问题
java.lang.IllegalArgumentException: Service Intent must be explicit: Intent { act=com.orbbec.handgestureregdemo.CursorService }01-28 08:56:09.246 3041 3041 E AndroidRuntime: at android.app.A...原创 2019-02-01 10:55:40 · 573 阅读 · 0 评论 -
aar包导入引起的Error:Failed to resolve: :xxxaar: 的问题
1,将aar包放在libs目录下之后,还需在需在build.gradle中添加如下:repositories { flatDir { dirs 'libs' }} 及在dependencies中添加:implementation(name: 'orbbeclicense-release', ext: 'aar')参考:https://b...原创 2019-02-20 10:14:26 · 6163 阅读 · 0 评论 -
Unable to add window android.view.ViewRootImpl$W@422f6830 -- permission denied for this window type
我出现这个问题的原因是在代码中我需要显示一个AlertDialog,但是在Manifest清单文件中,没有添加如下运行时权限,添加之后就OK了。<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" /> 详细log如下:02-22 11:16:41.759 5322-5322/co...原创 2019-02-22 11:30:31 · 7032 阅读 · 3 评论