android异常处理
p大田
这个作者很懒,什么都没留下…
展开
-
android studio No IDEA annotations attached to the JDK...
问题描述:android studio 突然关闭或者其他问题导出出现No IDEA annotations attached to the JDK JDK(D:\del\Android\Android Studio\jre) ,some issues will not be found,可以正常编译通过,但是androidx的一些类突然也找不到。解决方案:1.关闭Android Studio2.在“C:\Users\UserName\.android”目录,把“build-cache”删除.原创 2020-10-28 16:44:47 · 352 阅读 · 0 评论 -
parseSdkContent failed Could not initialize class android.graphics.Typeface异常
因为我在下载的是adt版本是23.0.2的。后来添加了一个sdk(android 5.0) ,后就出现了parseSdkContent failed Could not initialize class android.graphics.Typeface的异常。 网上查了大概的处理方式都是: 1.删除文件夹 C:\Users\Administrator\.android原创 2015-06-01 14:55:32 · 545 阅读 · 0 评论 -
android:configchanges 配置了orientation无效
在AndroidManifest.xml中的activity中配置了android:configChanges="orientation|keyboardHidden"发现当屏幕旋转的时候,还是执行了onCreate方法。原因:在android 4.0一下该属性有效,但是在4.0之后的无效。修改之后:android:configChanges="orientatio原创 2016-07-14 14:56:16 · 1071 阅读 · 0 评论 -
Android 关于android:foreground设置无效的问题
Android 关于android:foreground设置无效的问题转载 2016-07-10 13:14:57 · 1172 阅读 · 0 评论 -
RecyclerView.Adapter notifyItemRemoved postion错位的问题
notifyItemRemoved 错误导致软件崩溃原创 2016-07-16 01:15:16 · 7414 阅读 · 3 评论