Search code examples
androideclipsecompilationandroid-install-apk

Android Error: How to prevent overgrown APK file During compile process in eclipse?


I have run into a issue here that is causing some setbacks for sure. Here is what happened.

First, I was moving some large files around in Windows Explorer. And I Copied a 4 gb file into my clipboard to move somewhere. I later choose not to copy the file.

Second. Time passes. While the file was still in clipboard, I went back into eclipse and forgot about the file that I had in clipboard. I then clicked on a XML layout file from a different project. And copied that into the clipboard to move to another project.

Third. Thinking that the layout was in the clipboard I then pasted the layout file into the project where it did not get pasted. Instead the large file began importing into the project! 4.3 gigs... into the layout folder...

ohh noo

So I immediatly hit the X cancle operation. And everything jammed up.

Since then, every time I compile I have this huge process that goes through.

I have gone through every file in the project and see no traces of the half copied large file.. but the compiler keeps on wanting to process the file.. what a nightmare for sure.

Overgrown APK

Fix Attempts..

after blowing away the gen and bin I reloaded eclipe and I thought things were all good... Cleaned project.. it compiled.. perfect.. then made code changes... recompile .. BOOM. APK overgrowth and now .... Conversion to Dalvik format failed with error 1

apk file growth

log messages

enter image description here

After the 5+ gigs in growth.. I have come the conclusion that the 4gig copy paste error is not the issue...

like wow.. it will fill my hd up..

ahhh

enter image description here


Solution

  • My answer is a not very sophisticated, but it should be quick. Just create new project and copy all your classes and resources into it.