安卓开发常见错误
文章平均质量分 50
猴子搬来的救兵Castiel
关注安卓安全与安卓研发
展开
-
解决Android Studio Gradle DSL method not found: 'android()'问题
今天碰到一个朋友配置AndroidStudio项目中遇到了Android Studio Gradle DSL method not found: ‘android()’的问题解决方案如下:去掉项目中最外层的build.gradle的android { compileSdkVersion 19 buildToolsVersion 23.0.2}并按照如下规范配置你的AndroidSt原创 2016-05-06 18:17:24 · 5369 阅读 · 0 评论 -
Error:Execution failed for task ':app:dexDebug'. > com.android.ide.common.process.ProcessException总结
最新项目中遇到了Error:Execution failed for task ':app:dexDebug'. > com.android.ide.common.process.ProcessException该异常通常有三种表现情况:non-zero exit value 1non-zero exit value 2non-zero exit value 3具体形式如下Error:Exe原创 2016-05-17 15:49:48 · 3988 阅读 · 1 评论 -
Caused by: android.os.TransactionTooLargeException总结
Caused by: android.os.TransactionTooLargeException原创 2016-06-01 21:41:07 · 4986 阅读 · 0 评论 -
ClassCastException:ColorDrawable cannot be cast to RoundRectDrawableWithShadow
错误信息java.lang.ClassCastException: android.graphics.drawable.ColorDrawable cannot be cast to android.support.v7.widget.RoundRectDrawableWithShadow原创 2016-06-06 11:24:22 · 3358 阅读 · 0 评论 -
Error-Expected resource of type styleable [ResourceType]
错误信息Expected resource of type styleable [ResourceType]错误原因最近在项目中由于要使用沉浸式通知栏,所以使用了一个工具类SystemBarTintManager,而这个工具类在项目打包的过程中提示了一个错误:Expected resource of type styleable 解决方案在stackoverflow中发现很多人原创 2016-07-01 10:46:51 · 7568 阅读 · 1 评论 -
android.util.AndroidRuntimeException: Calling startActivity from outside of an Activity context
Caused by: Android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?原创 2016-06-15 14:36:08 · 1607 阅读 · 0 评论 -
ant构建异常UNEXPECTED TOP-LEVEL EXCEPTION com.android.dx.cf.iface.ParseException解决
UNEXPECTED TOP-LEVEL EXCEPTION[exec] com.android.dx.cf.iface.ParseException: bad class file magic(cafebabe) or version (0034.0000)原创 2016-09-30 21:19:02 · 3915 阅读 · 0 评论 -
移动开发必知必会的六大数据统计平台(入门篇)
数据统计对于各位移动开发的童鞋并不陌生,小到Bug统计,大到数据分析,一款性能稳定、用户体验良好的APP一定离不开数据统计的支持,为此我将给大家科普一下常用的六大数据统计平台。原创 2017-05-19 17:07:56 · 13314 阅读 · 0 评论