1、android.content.pm.PackageManager$NameNotFoundException
这个是因为安装的应用程序,不完整,apk有问题导致。
下载的时候出异常的话写一个接口。有一个回调。
出错了,怎么处理。
从arraylist删除
D/PackageManager( 1991): generateServicesMap(android.accounts.AccountAuthenticat
or): 5 services unchanged
W/System.err(19190): android.content.pm.PackageManager$NameNotFoundException: co
m.trustgo.security
W/System.err(19190): at android.app.ApplicationPackageManager.getPackageInfo(
ApplicationPackageManager.java:78)
W/System.err(19190): at com.trustgo.addon.dolphin.scan.z.b(Unknown Source)
W/System.err(19190): at com.trustgo.addon.dolphin.scan.BootReceiver.onReceive
(Unknown Source)
W/System.err(19190): at android.app.ActivityThread.handleReceiver(ActivityThr
ead.java:2119)
W/System.err(19190): at android.app.ActivityThread.access$1500(ActivityThread
.java:123)
W/System.err(19190): at android.app.ActivityThread$H.handleMessage(ActivityTh
read.java:1197)
W/System.err(19190): at android.os.Handler.dispatchMessage(Handler.java:99)
W/System.err(19190): at android.os.Looper.loop(Looper.java:137)
W/System.err(19190): at android.app.ActivityThread.main(ActivityThread.java:4
424)
W/System.err(19190): at java.lang.reflect.Method.invokeNative(Native Method)
W/System.err(19190): at java.lang.reflect.Method.invoke(Method.java:511)
W/System.err(19190): at com.android.internal.os.ZygoteInit$MethodAndArgsCalle
r.run(ZygoteInit.java:787)
W/System.err(19190): at com.android.internal.os.ZygoteInit.main(ZygoteInit.ja
va:554)
W/System.err(19190): at dalvik.system.NativeStart.main(Native Method)
W/System.err(19190): android.content.pm.PackageManager$NameNotFoundException: co
m.trustgo.security.beta
W/System.err(19190): at android.app.ApplicationPackageManager.getPackageInfo(
ApplicationPackageManager.java:78)
W/System.err(19190): at com.trustgo.addon.dolphin.scan.z.b(Unknown Source)
W/System.err(19190): at com.trustgo.addon.dolphin.scan.BootReceiver.onReceive
(Unknown Source)
W/System.err(19190): at android.app.ActivityThread.handleReceiver(ActivityThr
ead.java:2119)
W/System.err(19190): at android.app.ActivityThread.access$1500(ActivityThread
.java:123)
W/System.err(19190): at android.app.ActivityThread$H.handleMessage(ActivityTh
read.java:1197)
W/System.err(19190): at android.os.Handler.dispatchMessage(Handler.java:99)
W/System.err(19190): at android.os.Looper.loop(Looper.java:137)
W/System.err(19190): at android.app.ActivityThread.main(ActivityThread.java:4
424)
W/System.err(19190): at java.lang.reflect.Method.invokeNative(Native Method)
W/System.err(19190): at java.lang.reflect.Method.invoke(Method.java:511)
W/System.err(19190): at com.android.internal.os.ZygoteInit$MethodAndArgsCalle
r.run(ZygoteInit.java:787)
W/System.err(19190): at com.android.internal.os.ZygoteInit.main(ZygoteInit.ja
2、 java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread. [in ListView(2131493171, class android.widget.ListView) with Adapter
这个问题出现在onresume的时候使用AsyncTask,点击item到下一个界面,按back返回的时候,出现bug。
这个修改的时候加个判断当adpter不为空时notifyDataSetChanged,为空的时候就重新new.
3、
用DDMS添加文件到内存卡里提示
Failed to push the item(s).
解决方案:
把内存卡的容量加大,重启eclipse就OK了。
补充:如果提示Failed to push selection: Invalid argument,
说明你的路径中包括中文,请把中文全改为英文。导入的时候不要有空格 ,或者直接将APK拖到 File Explorer的sdcard里面。
4、java.lang.ArithmeticException: divide by zero: 算数异常
5、java.lang.IllegalStateException: get field slot from row 0 col 0 failed当数据库查询结果大于1M的时候,会报这个错误。
解决办法:查询的时候限制结果列,不要查出所有的列,只查询自己需要的。
String abcname = "abc";
Cursor c = db.query("table", new String[]{age, agender,heighth}, "name"+"=?", new String[]{abcname}, null, null, null);
6、 android sqlite查询数据时报错: get field slot from row 0 col -1 failed ,
int id = cursor.getInt(cursor.getColumnIndex(ID)); , 此处是获取ID的值, 查看上面代码后发现查询字段中没有查询ID字段,而现在又要获取这个字段的值,所以报了这个错误
获得查询有限制的时候,缺少列导致。
7、java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread.
解决办法:list变了,立马就得notifyDataSetChanged。
类似于clear()之后就马上notifyDataSetChanged。
8、Syntax error, insert ")" to complete Expression
分号打错位置了。
分享到:
相关推荐
fire_bug组件fire_bug组件fire_bug组件fire_bug组件fire_bug组件fire_bug组件fire_bug组件fire_bug组件fire_bug组件fire_bug组件fire_bug组件fire_bug组件
这是我进行android定制开发工作,遇到的bug修改列表,包含linux,git,android framework,android app的相关问题。android版本包含android2.3,4.0,4.1,4.2等版本的bug修改和系统定制
this file has eource code for bug tracking system...
ChkBugReport是一个用于分析android的bugreport的开源工具,它可以把你得到的bugreprot导出成适合阅读的html。导出的html文件包含了根据bugreport数据得出的图表和分析结论,主要包括进程内存占用信息、程序ANR或...
最常见的9种IE_css_bug及fix
帮助你快速掌握如何分析android bugreport
cs1.6 amx_bug_fixes_v34插件cs1.6 amx_bug_fixes_v34插件
bug_113.pdf bug_213.pdf bug_216.pdf bug_298.pdf bug_325_a.pdf bug_325_b.pdf bug_343.pdf bug_344.pdf bug_355.pdf bug_360.pdf bug_451265.pdf bug_451830.pdf bug_452455.pdf bug_454695.pdf bug_455199.pdf ...
BUG跟踪系统是用来对开发软件时发现的bug进行跟踪。里面包括用户管理模块,和BUG的涉及操作的功能。
[信息办公]BugFree1.0正式版_bugfree10.zip源码PHP项目源代码下载[信息办公]BugFree1.0正式版_bugfree10.zip源码PHP项目源代码下载 1.适合个人搭建网站项目参考 2.适合学生毕业设计搭建网站参考 3.适合小公司搭建...
OGRE开发的一个程序zombieisland_bug_camera
bug 2 algorithm to avoid obstacles (code in matlab)
1622479540743208_bugreport.cgi
mmx_bds8_BUG修复.7z
[开源]Android瀑布流实例_android_waterfall-master 有必要解释一下程序为什么采用addview方式而不是做成类似于ListView的那种Adapter数据方式。 首先考虑的是这样实现比较简单,代码量不多,简单易懂,不用涉及...
「移动安全」IPC_You_Outside_the_Sandbox:One_bug_to_Rule_the_Chrome_Broker - 数据治理 防火墙 安全人才 APT 安全意识 应急响应
[信息办公]BugFree1.0正式版_bugfree10.zip
[信息办公]BugFree v2.0 RC1 Build 20071031 (开源Bug管理系统)_bugfree.zip源码P[信息办公]BugFree v2.0 RC1 Build 20071031 (开源Bug管理系统)_bugfree.zip源码P 1.适合个人搭建网站项目参考 2.适合学生毕业设计...
1.IMX53CE_BUG list 2.
jira_bug管理系统使用说明