本文主要是介绍工具问题——eclipse中安装Installation error: INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
开博第一篇,以一个错误开始~~
下午修改自己的小东西,突然报错,之前一会还是好好的,不知道动了什么东西,竟然出做了。错误信息如下:
控制台:
[2012-04-21 18:07:55 - SMSExport] Installation error: INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION
[2012-04-21 18:07:55 - SMSExport] Please check logcat output for more details.
[2012-04-21 18:07:55 - SMSExport] Launch canceled!
Logcat:
04-21 18:22:29.240: D/AndroidRuntime(18344): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
04-21 18:22:29.240: D/AndroidRuntime(18344): CheckJNI is OFF
04-21 18:22:29.245: D/dalvikvm(18344): creating instr width table
04-21 18:22:29.435: D/AndroidRuntime(18344): Calling main entry com.android.commands.pm.Pm
04-21 18:22:29.480: D/dalvikvm(2466): GC_EXPLICIT freed 4K, 49% free 2772K/5379K, external 1954K/2101K, paused 29ms
04-21 18:22:29.480: W/ActivityManager(143): No content provider found for:
04-21 18:22:29.480: D/VoldCmdListener(113): asec list
04-21 18:22:29.490: I/PackageHelper(2466): Size of container 2 MB 275477 bytes
04-21 18:22:29.490: D/VoldCmdListener(113): asec create smdl2tmp1 2 fat {} 10038
04-21 18:22:29.490: E/VolumeManager(113): lookupVolume(smdl2tmp1)
04-21 18:22:29.535: I//system/bin/newfs_msdos(113): /system/bin/newfs_msdos: warning, /dev/block/dm-3 is not a character device
04-21 18:22:29.535: I//system/bin/newfs_msdos(113): /system/bin/newfs_msdos: Skipping mount checks
04-21 18:22:29.535: I//system/bin/newfs_msdos(113): Bogus heads from kernel - setting sane value
04-21 18:22:29.535: I//system/bin/newfs_msdos(113): Bogus sectors from kernel - setting sane value
04-21 18:22:29.535: I//system/bin/newfs_msdos(113): /dev/block/dm-3: 3712 sectors in 232 FAT32 clusters (8192 bytes/cluster)
04-21 18:22:29.535: I//system/bin/newfs_msdos(113): bps=512 spc=16 res=494 nft=2 sec=4221 mid=0xf0 spt=63 hds=64 hid=0 bspf=2 rdcl=2 infs=1 bkbs=2
04-21 18:22:29.595: I/Vold(113): Filesystem formatted OK
04-21 18:22:29.600: D/VoldCmdListener(113): asec path smdl2tmp1
04-21 18:22:29.605: I/PackageHelper(2466): Created secure container smdl2tmp1 at /mnt/asec/smdl2tmp1
04-21 18:22:29.605: I/DefContainer(2466): Created container for smdl2tmp1 at path : /mnt/asec/smdl2tmp1
04-21 18:22:29.640: I/DefContainer(2466): Copied /data/local/tmp/SMSExport.apk to /mnt/asec/smdl2tmp1/pkg.apk
04-21 18:22:29.640: D/VoldCmdListener(113): asec finalize smdl2tmp1
04-21 18:22:29.650: I/DefContainer(2466): Finalized container smdl2tmp1
04-21 18:22:29.650: I/DefContainer(2466): Unmounting smdl2tmp1 at path /mnt/asec/smdl2tmp1
04-21 18:22:29.680: D/dalvikvm(2466): GC_EXPLICIT freed 22K, 49% free 2771K/5379K, external 1954K/2101K, paused 31ms
04-21 18:22:29.770: D/dalvikvm(143): GC_EXPLICIT freed 1018K, 52% free 6520K/13383K, external 7428K/7428K, paused 87ms
04-21 18:22:29.775: D/VoldCmdListener(113): asec unmount smdl2tmp1 force
04-21 18:22:29.780: W/ActivityManager(143): No content provider found for:
04-21 18:22:29.790: D/VoldCmdListener(113): asec mount smdl2tmp1 {} 1000
04-21 18:22:29.865: D/VoldCmdListener(113): asec path smdl2tmp1
04-21 18:22:29.870: D/PackageParser(143): Scanning package: /mnt/asec/smdl2tmp1/pkg.apk
04-21 18:22:29.880: W/PackageParser(143): /mnt/asec/smdl2tmp1/pkg.apk
04-21 18:22:29.880: W/PackageParser(143): java.lang.UnsupportedOperationException: Can't convert to integer: type=0x3
04-21 18:22:29.880: W/PackageParser(143): at android.content.res.TypedArray.getInteger(TypedArray.java:367)
04-21 18:22:29.880: W/PackageParser(143): at android.content.pm.PackageParser.parsePackage(PackageParser.java:766)
04-21 18:22:29.880: W/PackageParser(143): at android.content.pm.PackageParser.parsePackage(PackageParser.java:421)
04-21 18:22:29.880: W/PackageParser(143): at com.android.server.PackageManagerService.installPackageLI(PackageManagerService.java:6043)
04-21 18:22:29.880: W/PackageParser(143): at com.android.server.PackageManagerService.access$2200(PackageManagerService.java:164)
04-21 18:22:29.880: W/PackageParser(143): at com.android.server.PackageManagerService$5.run(PackageManagerService.java:4787)
04-21 18:22:29.880: W/PackageParser(143): at android.os.Handler.handleCallback(Handler.java:587)
04-21 18:22:29.880: W/PackageParser(143): at android.os.Handler.dispatchMessage(Handler.java:92)
04-21 18:22:29.880: W/PackageParser(143): at android.os.Looper.loop(Looper.java:130)
04-21 18:22:29.880: W/PackageParser(143): at android.os.HandlerThread.run(HandlerThread.java:60)
04-21 18:22:29.880: I/PackageHelper(143): Forcibly destroying container smdl2tmp1
04-21 18:22:29.960: D/dalvikvm(143): GC_EXPLICIT freed 123K, 52% free 6444K/13383K, external 7428K/7428K, paused 80ms
04-21 18:22:29.965: D/VoldCmdListener(113): asec destroy smdl2tmp1 force
04-21 18:22:30.060: D/dalvikvm(143): GC_EXPLICIT freed 9K, 52% free 6442K/13383K, external 7428K/7428K, paused 79ms
04-21 18:22:30.090: D/AndroidRuntime(18344): Shutting down VM
04-21 18:22:30.100: D/dalvikvm(18344): GC_CONCURRENT freed 215K, 71% free 305K/1024K, external 0K/0K, paused 1ms+1ms
04-21 18:22:30.105: D/dalvikvm(18344): Debugger has detached; object registry had 1 entries
04-21 18:22:30.115: I/AndroidRuntime(18344): NOTE: attach of thread 'Binder Thread #3' failed
logcat中信息没看懂,网上查找了一下,没有解决问题,静下心想想了想这段时间做了啥。
1、刚做的系统在,正在升级,win7 sp1
2、正在升级我的SDK,ADT也刚升级到18.0。不知道会不会是它的原因
第一个可能不会,第二个有可能。遂重启了eclipse,运行错误依旧。打开另外一个项目,安装正常。应该是这个项目的问题。网上查另外一个哥们的错误是由于AndroidManifest.xml出错导致,想想自己改了哪些东西:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"package="com.whh.sms.export"android:versionCode="@string/versionCode"android:versionName="@string/versionName" >
</manifest>
把它改回去:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"package="com.whh.sms.export"android:versionCode="1"android:versionName="0.5.1" >
</manifest>
错误消失,暂时不知道为什么不可以这么写。试了下:
android:versionCode="1"
android:versionName="@string/versionName"
这样不会出错。待有时间研究下,同时希望高手指点。干活先~~
相关搜索:http://blog.csdn.net/harry_helei/article/details/6157428
这篇关于工具问题——eclipse中安装Installation error: INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!