Android error: Error generating final archive: java.io.FileNotFoundException: C:\[PATH]\resources.ap_ does not exist TestingAndroid

I got this annoying error now when trying to run my application:


Error generating final archive: java.io.FileNotFoundException: C:\Users\maffelu\workspace\TestingAndroid\bin\resources.ap_ does not exist

There were several solutions available on google:

  • Do a clean (didn’t work for me)
  • Restart eclipse (the windows way didn’t work either)
  • Create a new resources.ap_ file in the directory specified in the error message (this did work for me, wohoo!)
  • Reinstall the Android SDK (thankfully it didn’t go this far…)

Feel free to try all solutions until it gets fixed 😛

Android error: Error generating final archive: Debug Certificate expired on [xxx]

I got this error when I tried to start my android application:


Error generating final archive: Debug Certificate expired on 2012-01-14 21:26 TestingAndroid Unknown Android Packaging Problem

I hadn’t been androiding for a while and I’d never seen this before. Luckily google could help me on this one, but I’ll put the solution here anyway:

  1. Go to %USERPROFILE%/.android
  2. Delete the debug.keystore file there
  3. Clean your project and rebuild
  4. Done!

The error should be gone now!