title: Installation failed due to invalid APK file! - Android
body: <p>So there were a couple of posts on this topic, but it looks like my log cat is totally different. Not sure what's going on. When I try to run on my device I get console log:</p>
  
  <pre><code>[2012-07-17 14:50:56 - zrox] Uploading zrox.apk onto device '3134F748F94100EC'
  [2012-07-17 14:50:56 - zrox] Installing zrox.apk...
  [2012-07-17 14:50:57 - zrox] Installation failed due to invalid APK file!
  [2012-07-17 14:50:57 - zrox] Please check logcat output for more details.
  [2012-07-17 14:50:57 - zrox] Launch canceled!
  </code></pre>
  
  <p>And Logcat:</p>
  
  <pre><code>07-17 19:50:56.043: W/zipro(4533): Unable to open zip '/data/local/tmp/zrox.apk': Permission denied
  07-17 19:50:56.043: D/asset(4533): failed to open Zip archive '/data/local/tmp/zrox.apk'
  07-17 19:50:56.047: D/dalvikvm(252): WAIT_FOR_CONCURRENT_GC blocked 0ms
  07-17 19:50:56.047: W/PackageParser(4533): Unable to read AndroidManifest.xml of /data/local/tmp/zrox.apk
  07-17 19:50:56.047: W/PackageParser(4533): java.io.FileNotFoundException: AndroidManifest.xml
  07-17 19:50:56.047: W/PackageParser(4533):  at android.content.res.AssetManager.openXmlAssetNative(Native Method)
  07-17 19:50:56.047: W/PackageParser(4533):  at android.content.res.AssetManager.openXmlBlockAsset(AssetManager.java:487)
  07-17 19:50:56.047: W/PackageParser(4533):  at android.content.res.AssetManager.openXmlResourceParser(AssetManager.java:455)
  07-17 19:50:56.047: W/PackageParser(4533):  at android.content.pm.PackageParser.parsePackageLite(PackageParser.java:722)
  07-17 19:50:56.047: W/PackageParser(4533):  at com.android.defcontainer.DefaultContainerService$1.getMinimalPackageInfo(DefaultContainerService.java:169)
  07-17 19:50:56.047: W/PackageParser(4533):  at com.android.internal.app.IMediaContainerService$Stub.onTransact(IMediaContainerService.java:110)
  07-17 19:50:56.047: W/PackageParser(4533):  at android.os.Binder.execTransact(Binder.java:367)
  07-17 19:50:56.047: W/PackageParser(4533):  at dalvik.system.NativeStart.run(Native Method)
  07-17 19:50:56.047: W/DefContainer(4533): Failed to parse package
  07-17 19:50:56.047: W/ActivityManager(252): No content provider found for permission revoke: file:///data/local/tmp/zrox.apk
  07-17 19:50:56.117: D/dalvikvm(252): GC_EXPLICIT freed 380K, 18% free 14176K/17159K, paused 4ms+6ms, total 70ms
  </code></pre>
  
  <p>I just installed a rom on my Nexus S for android 4.1. It worked when I had 4.0.3 yesterday. I do have the 4.1 SDK installed in eclipse, and <code>android:targetSdkVersion</code> is set to 16. I have also run a clean on the project. Nothing. Any ideas?</p>