![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Android异常处理与测试
Notzuonotdied
一个人优秀的可怕的三个迹象:高度的自律,近乎疯狂的努力;对自己好,学会不计代价的投资自己;相信自己,不在乎他人的眼光。
展开
-
Caused by: java.lang.RuntimeException: A TaskDescription's primary color should be opaque的解决方案
今天,在编写一个项目的时候,遇到了一个问题,这让我很囧~。在android 5.0以下是可以完美运行的,结果到了android 5.0的时候,就出事了,囧~一脸郁闷,后来查了一下,才知道android5.0+要求Primary系列的颜色必须是缺省的或者是透明度为ff的原创 2016-09-08 19:51:31 · 3396 阅读 · 0 评论 -
could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037
问题: daemon not running. starting it now on port 5037 error: could not install smartsocket listener: cannot bind to 127.0.0.1:5037: XXX(10048) could not read ok from ADB Server failed to start d转载 2016-09-01 23:31:28 · 9007 阅读 · 0 评论 -
Caused by: java.lang.NoSuchMethodException: <init> [class android.content.Context, interface androi
对于Caused by: java.lang.NoSuchMethodException: [class android.content.Context, interface android.util.AttributeSet],是由于在自定义View控件的时候,没有重载public View(Context context, AttributeSet attrs) { super原创 2016-08-03 08:30:48 · 1015 阅读 · 0 评论 -
VectorDrawable异常处理
问题android.content.res.Resources$NotFoundException: File res/drawable-xxhdpi-v4/ic_marker_inactive.png from xml type xml resource ID #0x7f02005d. If the resource you are trying to use is a vector resour原创 2017-10-03 08:50:26 · 1034 阅读 · 0 评论 -
Android Studio在导入项目的时候时间超级长的解决方法
Android Studio在导入项目的时候时间超级长的解决方法原创 2017-03-20 11:21:46 · 2018 阅读 · 0 评论 -
Android Realm Gradle3.0以上出错解决方法
前言想在Android Studio3.2中使用Realm,结果发现gradle3.0以上不支持APT了。需要转换下才可以使用,特意将解决的方法记录下来。问题描述按照正常,我们会这样子配置:buildscript { repositories { …… } dependencies { classpath &quot;com.android.t...原创 2019-01-12 22:40:09 · 2424 阅读 · 0 评论 -
Android CMake错误解决
前言这几天的任务是帮忙分析看看内存中的Bitmap的使用情况,同事推荐了腾讯Tencent的Matrix框架。【WIKI直通车】问题梳理与解决当我开心的将源码拉下来编译./gradlew build的时候,Android Studio给我来了一波错误的洗礼!!!╮(╯▽╰)╭(base) ➜ matrix-android git:(master) ✗ ./gradlew buildF...原创 2019-04-24 19:35:05 · 2800 阅读 · 1 评论