Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 966
asaf Avatar asked Nov 04 '11 20:11

asaf


People also ask

How do I view the contents of an APK file in Android?

If you want to locate the APK files in your Android phones, you can find the APK for user-installed apps under /data/app/directory while the preinstalled ones are located in /system/app folder and you can access them by using ES File Explorer.

What is Classes dex file in android?

The classes. dex file is a Dalvik Executable file that all Android applications must have. This file contains the Java libraries that the application uses. When you deploy an application for Android, RAD Studio includes a classes. dex file that contains the RAD Studio built-in Java libraries.

What app opens DEX files?

Dalvik is a part of Google Android OS and is used for running compatible applications. DEX files can either be generated manually or automatically via the compilation of Java programs.


1 Answers

"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....

like image 150
Ruslan Avatar answered Sep 21 '22 15:09

Ruslan