Android APK file and DEX files not created, with no warning or error

asaf picture asaf · Nov 4, 2011 · Viewed 13.8k times · Source

I've developed Android for a while now, using WIN7 64bit and Eclipse. Since I've tried to install the new ADT (1.5), I get a very weird phenomena. My build doesn't complete, and doesn't generate the APK file, nor the dex files. the class files are created, but nothing else.

Also, there is no warning or error neither at the output or the Eclipse log.

The problem didn't occur immediately, but only after 1 or 2 good builds. Even if I create a simple project, the same thing happens.

I didn't find anything useful on the net. I've re-downloaded Eclipse, the SDK, ADT, and started all over again, and got the JRE7 compatibility issue (function ... must override). I guess I got a Java SE update, and lost the old JRE. So I've downloaded JRE6, changed the compliance issue, and set it and the environment, and got back to square 1 :)

The build process starts, reaches 50% or 75%, suddenly stops, and no apk or dex files are created. Even for new empty helloWorld projects.

Can someone please help? I have no idea how to proceed.

Thanks

Answer

Ruslan picture Ruslan · Nov 17, 2011

"With the new ADT plugins, it is the default behavior (to speed up build time) to not generate the .apk on every build..." as said in groups.google:

See http://groups.google.com/group/android-developers/browse_thread/thread/769628c57caa51ad/4cb2c6589995a9a5?pli=1

You can enable automatic dex/apk building in the Eclipse settings: Window -> Preferences -> Android -> Build -> [] Skip packaging and dexing...

// I tried to reinstall everything before finding this solution....