
error总结
文章平均质量分 78
Iaouei
这个作者很懒,什么都没留下…
展开
-
NumberFormatException相关的error总结
java.lang.NumberFormatException 数字格式异常。当试图将一个String转换为指定的数字类型,而该字符串确不满足数字类型要求的格式时,抛出该异常.原创 2016-06-27 16:43:39 · 112110 阅读 · 3 评论 -
[Genymotion] Unable to start the virtual device
Unable to start the virtual device.VirtualBox cannot start the Virtual device.原创 2016-07-10 19:47:15 · 1224 阅读 · 0 评论 -
问题 System.out.println(versionName);输出结果:System.out: INSTANT_RUN
问题System.out.println(versionName);输出结果:System.out: INSTANT_RUN代码:private void initDate() { PackageManager pm= getPackageManager(); try { PackageInfo packageInfo= pm.get原创 2016-07-04 03:12:31 · 804 阅读 · 0 评论 -
Adapter中常见遇到的NullPointerException
View.inflate():找出 res/layout 下的 xml 布局文件填充到父布局,并且实例化,此时,仅仅在内存中创建了这个对象而已,在界面上不会显示出来这个对象findViewById():根据id获取布局文件中的布局和空间,只要使用android:id=”“属性的都可以使用此方法获取。默认是在主xml布局文件中查找,如果要动态加载的布局文件,则要在使用: 声明的布局名.findViewById(R.id.tv_grid)原创 2016-07-05 23:13:31 · 22202 阅读 · 0 评论 -
ViewPager中的PagerTabStrip在运行测试的时候不显示问题解决
我一个现有的app,使用了ViewPager和PagerTabStrip,它们都是使用多版本的Android SDK 和 com.android.support:appcompat-v7都正常运行并且有一段时间了.但当我试图去完善并且把目标 SDK版本从app的 23 改成 24 而且 com.android.support:appcompat-v7 版本也从 23.4.0 改成 24.0.0.的时候,我发现 PagerTabStrip 从 ViewPager消失不见了原创 2016-07-18 06:40:55 · 1046 阅读 · 0 评论