大家好
自己在开发板上移植了一套安卓4.0.4系统,接着想往里面安装些软件,可是在安装软件的时候,显示应用程序未安装,打开logcat信息查看了下,发现是:
W/PackageParser( 1574): Exception reading assets/fishes/fish_180.png in /data/app/vmdl791637266.tmp
W/PackageParser( 1574): java.lang.SecurityException: META-INF/MANIFEST.MF has invalid digest for
assets/fishes/fish_180.png in /data/app/vmdl791637266.tmp
W/PackageParser( 1574): at java.util.jar.JarVerifier.invalidDigest(JarVerifier.java:131)
W/PackageParser( 1574): at java.util.jar.JarVerifier.access$100(JarVerifier.java:53)
W/PackageParser( 1574): at java.util.jar.JarVerifier$VerifierEntry.verify(JarVerifier.java:123)
W/PackageParser( 1574): at java.util.jar.JarFile$JarFileInputStream.read(JarFile.java:119)
W/PackageParser( 1574): at java.io.BufferedInputStream.read(BufferedInputStream.java:304)
W/PackageParser( 1574): at android.content.pm.PackageParser.loadCertificates(PackageParser.java:363)
W/PackageParser( 1574): at android.content.pm.PackageParser.collectCertificates(PackageParser.java:550)
W/PackageParser( 1574): at com.android.server.pm.PackageManagerService.installPackageLI
(PackageManagerService.java:6627)
W/PackageParser( 1574): at com.android.server.pm.PackageManagerService.access$1500
(PackageManagerService.java:152)
W/PackageParser( 1574): at com.android.server.pm.PackageManagerService$5.run
(PackageManagerService.java:5164)
W/PackageParser( 1574): at android.os.Handler.handleCallback(Handler.java:605)
W/PackageParser( 1574): at android.os.Handler.dispatchMessage(Handler.java:92)
W/PackageParser( 1574): at android.os.Looper.loop(Looper.java:137)
W/PackageParser( 1574): at android.os.HandlerThread.run(HandlerThread.java:60)
E/PackageParser( 1574): Package com.vwoof.fishhunter has no certificates at entry assets/fishes/fish_180.png;
ignoring!
D/dalvikvm( 1574): GC_EXPLICIT freed 734K, 15% free 11607K/13575K, paused 2ms+15ms
D/InstallAppProgress( 2798): Installation error code: -103
而且不是每一个软件都是这样的,有些软件可以安装进去,有些就安装不进去,logcat就显示如上信息。
好像是跟签名有关的问题。可是安装不了的软件在手机里照样可以安装,这是安卓系统出的问题吗?
希望各路高手帮我分析下,谢谢!
------解决方案--------------------
这个好像没什么对应关系吧,实在不行你用最新的jdk就是了..