title: Unable to install apk
body: <p>I am using Eclipse Ganymede with <code>ADT 10.0</code> plugin and <code>Android3.0 SDK</code> to build my application.</p>
  
  <p>When i try to deploy the application on my phone I get the following written on my console:</p>
  
  <pre><code>[2011-05-06 10:35:38 - MyProject] Failed to install MyProject.apk on device 
  [2011-05-06 10:35:38 - MyProject] (null)
  [2011-05-06 10:35:38 - MyProject] Launch canceled! 
  </code></pre>
  
  <p>and the following is written to <code>adb logcat</code>:</p>
  
  <pre><code>INFO/zipro(2499): Could not find end-of-central-directory in Zip
  DEBUG/asset(2499): failed to open Zip archive '/data/local/tmp/MyProject.apk'
  WARN/PackageParser(2499): Unable to read AndroidManifest.xml of /data/local/tmp/MyProject.apk
  WARN/PackageParser(2499): java.io.FileNotFoundException: AndroidManifest.xml
  WARN/PackageParser(2499):     at android.content.res.AssetManager.openXmlAssetNative(Native Method)
  WARN/PackageParser(2499):     at android.content.res.AssetManager.openXmlBlockAsset(AssetManager.java:523)
  WARN/PackageParser(2499):     at android.content.res.AssetManager.openXmlResourceParser(AssetManager.java:491)
  WARN/PackageParser(2499):     at android.content.pm.PackageParser.parsePackageLite(PackageParser.java:597)
  WARN/PackageParser(2499):     at com.android.defcontainer.DefaultContainerService$1.getMinimalPackageInfo(DefaultContainerService.java:126)
  WARN/PackageParser(2499):     at com.android.internal.app.IMediaContainerService$Stub.onTransact(IMediaContainerService.java:100)
  WARN/PackageParser(2499):     at android.os.Binder.execTransact(Binder.java:288)
  WARN/PackageParser(2499):     at dalvik.system.NativeStart.run(Native Method)
  ERROR/PackageManager(1579): Failed to handle start copy. Giving up
  ERROR/PackageManager(1579): java.lang.NullPointerException
  ERROR/PackageManager(1579):     at android.os.Parcel.readException(Parcel.java:1253)
  ERROR/PackageManager(1579):     at android.os.Parcel.readException(Parcel.java:1235)
  ERROR/PackageManager(1579):     at com.android.internal.app.IMediaContainerService$Stub$Proxy.getMinimalPackageInfo(IMediaContainerService.java:220)
  ERROR/PackageManager(1579):     at com.android.server.PackageManagerService$InstallParams.handleStartCopy(PackageManagerService.java:5065)
  ERROR/PackageManager(1579):     at com.android.server.PackageManagerService$HandlerParams.startCopy(PackageManagerService.java:4954)
  ERROR/PackageManager(1579):     at com.android.server.PackageManagerService$PackageHandler.doHandleMessage(PackageManagerService.java:476)
  ERROR/PackageManager(1579):     at com.android.server.PackageManagerService$PackageHandler.handleMessage(PackageManagerService.java:421)
  ERROR/PackageManager(1579):     at android.os.Handler.dispatchMessage(Handler.java:99)
  ERROR/PackageManager(1579):     at android.os.Looper.loop(Looper.java:143)
  ERROR/PackageManager(1579):     at android.os.HandlerThread.run(HandlerThread.java:60)
  </code></pre>
  
  <p>When I try to install it using <code>adb shell</code> from cmd prompt I get:</p>
  
  <pre><code>EOCD not found, not Zip
  file 'D:\Workspace\MyProject\bin\MyProject.apk' is not a valid zip file
  </code></pre>
  
  <p>I have tried cleaning the project/ deleting the <code>gen</code> folder / deleting the debug keystore. Nothing worked; </p>
  
  <p>Please advise.</p>