2014-06-26 81 views
1

我在嘗試運行一個android項目時遇到以下問題。任何人都可以請建議一些解決方案的問題?無法讀取AndroidManiFest.xml Android項目

Zip: EOCD not found, /data/local/tmp/Scrumptious.apk is not zip 
06-26 21:25:53.012: D/asset(21420): failed to open Zip archive '/data/local/tmp/Scrumptious.apk' 
06-26 21:25:53.022: W/PackageParser(21420): Unable to read AndroidManifest.xml of /data/local/tmp/Scrumptious.apk 
06-26 21:25:53.022: W/PackageParser(21420): java.io.FileNotFoundException: AndroidManifest.xml 
06-26 21:25:53.022: W/PackageParser(21420):  at android.content.res.AssetManager.openXmlAssetNative(Native Method) 
06-26 21:25:53.022: W/PackageParser(21420):  at android.content.res.AssetManager.openXmlBlockAsset(AssetManager.java:488) 
06-26 21:25:53.022: W/PackageParser(21420):  at android.content.res.AssetManager.openXmlResourceParser(AssetManager.java:456) 
06-26 21:25:53.022: W/PackageParser(21420):  at android.content.pm.PackageParser.parsePackageLite(PackageParser.java:780) 
06-26 21:25:53.022: W/PackageParser(21420):  at com.android.defcontainer.DefaultContainerService$1.getMinimalPackageInfo(DefaultContainerService.java:175) 
06-26 21:25:53.022: W/PackageParser(21420):  at com.android.internal.app.IMediaContainerService$Stub.onTransact(IMediaContainerService.java:110) 
06-26 21:25:53.022: W/PackageParser(21420):  at android.os.Binder.execTransact(Binder.java:404) 
06-26 21:25:53.022: W/PackageParser(21420):  at dalvik.system.NativeStart.run(Native Method) 
06-26 21:25:53.022: W/DefContainer(21420): Failed to parse package 

回答

3

看來,您的APK是無效的(解析失敗包),當這樣當前安裝的APK是不同的簽名。所以儘量

  1. 卸載舊的應用程序
  2. 重啓Eclipse
  3. 重建項目
  4. 重新安裝APK
0

右鍵點擊你的項目 - > Android的工具 - >修復項目屬性。從developers page.

採取如果你看到AndroidManifest.xml中,或與一個Android zip文件的一些問題出錯,請右鍵單擊該項目並選擇Android的工具>修復項目屬性。 (該項目正在尋找庫文件的錯誤位置,這將爲您解決它。)

相關問題