Android Issue Sharing

来源:互联网 发布:怎样退货给淘宝卖家 编辑:程序博客网 时间:2024/05/16 12:36
1、Java Exception: "Binary XML file line # : Error inflating class"
http://blog.csdn.net/huangxiaohu_coder/article/details/8497286
a、引用类名问题: 自定义View在Layout.xml必须使用完整路径名
b、构造函数实现
    View(Context context)//Simple constructor to use when creating a view from code
    View(Context context, AttributeSet attrs)   //Constructor that is called when inflating a view from XML
    View(Context context, AttributeSet attrs, int defStyle)   //Perform inflation from XML and apply a class-specific base style
c、编译中间文件必须清理干净
d、仔细寻找更上面的crash stack info
e、找不到相关资源文件,如dimen没有在values中声明,仅在values-sw360dp中声明; image没有在drawable下声明;


2、Android Studio: "compileDebugWithJavac fail"
an exception has occurred in the compiler (1.8.0_76-release)
原因:Java 1.8 Lambda在non-AS IDE环境下paste引入,没有open java file导致lambda解析异常,出现javac crash;
前提: retro-lambda相关dependency正常


Dialog管理
http://www.tuicool.com/articles/aMNN3y


so Crash
http://blog.csdn.net/abulin/article/details/41710169


3. ObjectManager 管理List的class,一定要在add/remove加锁;
   避免add method 中call add other method,然后两个都加锁;



原创粉丝点击