2013-05-30 97 views
0

安裝APK我已經安裝了Eclipse在新電腦的Windows 8,我已經從我的舊電腦複製的工作空間,現在我可以打開項目,並與他們正常工作,但是當我嘗試安裝APK在設備或模擬器,會出現一個錯誤在控制檯:我無法從日食

導致安裝失敗,無效的APK文件! 請檢查logcat輸出瞭解更多詳情。 發佈取消!

這是logcat的:

> 05-30 13:11:54.054: W/PackageParser(3644): Unable to read AndroidManifest.xml of /data/local/tmp/J i A.apk 
05-30 13:11:54.054: W/PackageParser(3644): java.io.FileNotFoundException: AndroidManifest.xml 
05-30 13:11:54.054: W/PackageParser(3644): at android.content.res.AssetManager.openXmlAssetNative(Native Method) 
05-30 13:11:54.054: W/PackageParser(3644): at android.content.res.AssetManager.openXmlBlockAsset(AssetManager.java:487) 
05-30 13:11:54.054: W/PackageParser(3644): at android.content.res.AssetManager.openXmlResourceParser(AssetManager.java:455) 
05-30 13:11:54.054: W/PackageParser(3644): at android.content.pm.PackageParser.parsePackageLite(PackageParser.java:649) 
05-30 13:11:54.054: W/PackageParser(3644): at com.android.defcontainer.DefaultContainerService$1.getMinimalPackageInfo(DefaultContainerService.java:144) 
05-30 13:11:54.054: W/PackageParser(3644): at com.android.internal.app.IMediaContainerService$Stub.onTransact(IMediaContainerService.java:102) 
05-30 13:11:54.054: W/PackageParser(3644): at android.os.Binder.execTransact(Binder.java:338) 
05-30 13:11:54.054: W/PackageParser(3644): at dalvik.system.NativeStart.run(Native Method) 
05-30 13:11:54.054: W/DefContainer(3644): Failed to parse package 
05-30 13:11:54.062: I/ApplicationPolicy(187): isApplicationInstallationEnabled 
05-30 13:11:54.062: W/PackageManager(187): verifying app can be installed or not 
05-30 13:11:54.062: W/PackageParser(3644): Unable to read AndroidManifest.xml of /data/local/tmp/J i A.apk 
05-30 13:11:54.062: W/PackageParser(3644): java.io.FileNotFoundException: AndroidManifest.xml 
05-30 13:11:54.062: W/PackageParser(3644): at android.content.res.AssetManager.openXmlAssetNative(Native Method) 
05-30 13:11:54.062: W/PackageParser(3644): at android.content.res.AssetManager.openXmlBlockAsset(AssetManager.java:487) 
05-30 13:11:54.062: W/PackageParser(3644): at android.content.res.AssetManager.openXmlResourceParser(AssetManager.java:455) 
05-30 13:11:54.062: W/PackageParser(3644): at android.content.pm.PackageParser.parsePackageLite(PackageParser.java:649) 
05-30 13:11:54.062: W/PackageParser(3644): at com.android.defcontainer.DefaultContainerService$1.getMinimalPackageInfo(DefaultContainerService.java:144) 
05-30 13:11:54.062: W/PackageParser(3644): at com.android.internal.app.IMediaContainerService$Stub.onTransact(IMediaContainerService.java:102) 
05-30 13:11:54.062: W/PackageParser(3644): at android.os.Binder.execTransact(Binder.java:338) 
05-30 13:11:54.062: W/PackageParser(3644): at dalvik.system.NativeStart.run(Native Method) 
05-30 13:11:54.062: W/DefContainer(3644): Failed to parse package 
05-30 13:11:54.062: W/ActivityManager(187): No content provider found for permission revoke: file:///data/local/tmp/J i A.apk 

如果我嘗試導出生成APK文件的應用程序,會出現一個對話框,說「無法導出應用程序」。

任何想法來解決這個問題?無論如何,我無法測試我的應用程序或生成apk。

+0

嘗試創建一個新的項目,如果不工作,嘗試ADT的新鮮下載(Android的開發工具),並重新安裝。 – rmooney

+0

清潔工程....和重建......我也遇到這個問題.. – Sandy09

+0

我已經重新安裝了Eclipse,ADT和SDK,我清理項目和重建,但存在的問題依然存在。我會嘗試一個新項目。 –

回答

0

檢查目標SDK的Android應用程序,並確保您有安裝SDK版本。您可以在項目屬性中更改它。

+0

我檢查過了,這不是解決方案 –