2015年11月4号 运行中的package报错处理
2016-02-01 14:32
218 查看
1.虽然水平一般。但是感觉有的时候,一些bug如果真的不懂的话。还是去谷歌吧。哦对了。天朝不能用谷歌。所以。自己想办法咯。另外,找到问题。还是别用翻译软件了。。。这个。程序猿们,你们懂的。
2.记录今天遇到我一个小小的问题。困扰很久。也不算小问题。反正我是各种百度了。各种csdn了。找到的答案总是牛头不对马嘴。
问题如下:Unable to get package info for com.zdnews; is package not installed?
首先想到的是application 里面是不是没有配置好name的路径,后来发觉。根本就不是路径的问题。所以。方案一,失败。
其次,想到的百度和CSDN上面的大神。于是,答案如下:这个问题引起原因是 简单的卸载app 没有卸载干净,然后再次运行,当dalvik重新安装。apk文件并试图重用以前的活动从同一个包 实在是没有理解这句话的意思。所以方案二 失败。(eclipse 里面重新运行,哪里来的dalvik 没有卸载干净一说。。。。反正是不理解这句话,博主肯定没有认真看下,app安卓的几种方式,我指的是底层安装方式)
----------------------------------------------------- Good Boy---------------------------------------------------------------
正解来了。国外的小哥这么解释的,我就直接copy了
大概解释下。意思就是说。这小哥也解释了卸载不干净一说,但是意思说这种可能比较小。有种可能就是你在Appliaction中做了某些耗时的动作。这个在刚安装的时候。这是不被允许的。耗时动作是要在后台。而不是主线程。so~~~~ 搞定。之前测试数据的时候。很贱的在Application中去获取设备信息。实在作死。
末尾附上链接:http://stackoverflow.com/questions/24426635/caused-by-java-lang-illegalstateexception-package-not-installed
========= 碎觉。
2.记录今天遇到我一个小小的问题。困扰很久。也不算小问题。反正我是各种百度了。各种csdn了。找到的答案总是牛头不对马嘴。
问题如下:Unable to get package info for com.zdnews; is package not installed?
首先想到的是application 里面是不是没有配置好name的路径,后来发觉。根本就不是路径的问题。所以。方案一,失败。
其次,想到的百度和CSDN上面的大神。于是,答案如下:这个问题引起原因是 简单的卸载app 没有卸载干净,然后再次运行,当dalvik重新安装。apk文件并试图重用以前的活动从同一个包 实在是没有理解这句话的意思。所以方案二 失败。(eclipse 里面重新运行,哪里来的dalvik 没有卸载干净一说。。。。反正是不理解这句话,博主肯定没有认真看下,app安卓的几种方式,我指的是底层安装方式)
----------------------------------------------------- Good Boy---------------------------------------------------------------
正解来了。国外的小哥这么解释的,我就直接copy了
I think this happens when you run the app from eclipse while you already have the previous version installed ? This won't happen if you uninstall the app before running it again from eclipse. Also, this won't cause any problems.
| |||||||||||||||||||||
|
末尾附上链接:http://stackoverflow.com/questions/24426635/caused-by-java-lang-illegalstateexception-package-not-installed
========= 碎觉。
相关文章推荐
- vs2010 MFC +win7下的程序 在win7上正常运行,Server2008就出错(ADO数据库连接出错)
- MathJax
- Centos 6.5安装mongodb3.2.1
- iOS Crash解析
- Android的消息循环机制 Looper Handler类分析
- Android ToolBar 基本使用
- TS流相关问题
- 2月1日:成都力争3年建237个养老院全覆盖社区养老
- mysql/Java服务端对emoji的支持
- foreach适合在什么情况下使用+foreach的内部原理剖析
- 关于listview设置特定item是否可以被选中和点击的设置
- 别让外人知道你在想什么
- jquery实现带搜索的下拉框
- 几个有用的资源
- jdk环境变量的配置及path、classpath的作用和区别
- 2015 12 3 Handler
- Kerbose
- 几种排序算法
- android键盘监听方案
- wdcp后台里mysql的管理用户root密码不对或修改方法介绍