android开发中的bug
cr_lotus1412
不积跬步无以至千里
展开
-
Channel is unrecoverably broken and will be disposed!
分析:这个错误是传入某个参数的格式问题CheckableButton button = new CheckableButton(this);DataStore dataStore = new DataStore(); dataStore.GoodsInfo.add("商品"); dataStore.ChannelCom.add("推荐频道");原创 2017-04-11 05:05:06 · 541 阅读 · 0 评论 -
android.content.res.Resources$NotFoundException: String resource ID #0x5848e473
错误:android.content.res.Resources$NotFoundException: String resource ID #0x1原因:一般发生在参数 int resId 错误,你把String赋值给int的resId,所以编译器找不到正确的resource于是报错。最简单的例子,检查一下你的Toast.makeText()啊textView.setText啊之类的函数转载 2016-12-09 00:57:16 · 243 阅读 · 0 评论 -
java.lang.IndexOutOfBoundsException: Invalid index 17, size is 10
Invalid index n, size is mn>=m 时,形参List的下标与实参的下标不匹配原创 2016-12-19 13:59:49 · 4518 阅读 · 0 评论 -
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
某些ApI过时,clean project,在proguard-rules.pro中添加以下代码:-keepattributes EnclosingMetho原创 2016-12-19 20:11:16 · 599 阅读 · 0 评论 -
URI is not registered ( Setting | Project Settings | Schemas and DTDs ) 解决方案
解决方案:build-->select build variant1.I switched the build variant to release, and then back to debug. This caused AS to reload something, and the error went away.转载 2016-12-21 17:39:20 · 1596 阅读 · 0 评论 -
Missing Gradle Project Information. Please check if the IDE successfully synchronized its state with
androidstudio 签名打包时出错:tools > Android > Sync Project with Gradle Files原创 2016-12-27 17:07:06 · 15555 阅读 · 3 评论 -
Caused by: java.lang.IllegalStateException: Required view 'descriping' with ID 2131558573 for field
使用butterknight出错原因:更改了id值,解决方案删除出错activity下的id值,重新生成反射注入id值原创 2017-01-02 18:04:50 · 11140 阅读 · 0 评论 -
Android运行时异常“Binary XML file line # : Error inflating class”
在原生Android下编译APK,编译没有问题,但是在运行的时候经常出现如标题所描述的异常,然后整个程序Crash掉...... 我遇到该问题常常都是因为修改了资源文件所引起,大致有以下几种方式来解决: 1. 引用类名问题:自定义了一个View,将他用于布局文件中,假设他的包名叫MyPackage,类名叫MyTestView,这个时候你在XML作为布局元素来布局的话,必转载 2017-01-02 19:13:17 · 305 阅读 · 0 评论 -
java.lang.IllegalStateException: The specified child already has a parent.
嵌套Framgment的问题viewPager里面套listview或者 Fragment 由于布局的复用时,同一个view被指定了多个parent解决方法:ViewGroup parent = (ViewGroup) views.get(position).getParent(); if (parent!=null){ con原创 2017-04-21 17:08:00 · 445 阅读 · 0 评论 -
Android:InflateException: Binary XML file line #12: Error inflating class null
去掉一个Viewandroid:layout_marginTop="5dp"-android:background="#26A0DA"android:layout_marginLeft="5dp"android:layout_marginRight="5dp"android:layout_width="match_parent"android:layout_height转载 2016-11-15 19:11:56 · 825 阅读 · 2 评论