Discussion:
Install .odex + .apk
Isaac Waller
2009-02-22 18:42:14 UTC
Permalink
Hello,
I have a .odex and a .apk file. I understand that the .odex is just
the classes.dex file extracted, so if there is some way I can put it
back in so I can install it on the emulator? I am getting errors about
classes.dex without that.
Thanks,
Isaac
Dianne Hackborn
2009-02-23 03:31:21 UTC
Permalink
You never need to do anything with the .odex, it is created for you when
needed (when the app is installed or updated or the system updated). Also
it is not just a copy of the .dex, but actually the version of your code
linked against the actual system it is running on.
Post by Isaac Waller
Hello,
I have a .odex and a .apk file. I understand that the .odex is just
the classes.dex file extracted, so if there is some way I can put it
back in so I can install it on the emulator? I am getting errors about
classes.dex without that.
Thanks,
Isaac
--
Dianne Hackborn
Android framework engineer
***@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support. All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-***@googlegroups.com
To unsubscribe from this group, send email to
android-developers-***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---
David Turner
2009-02-23 10:07:38 UTC
Permalink
You should not mess with .odex files, they are essentially device-specific
optimized versions of your classes.dex that are
generated by the installer for you to speed up application startup and
runtime. The exact format of .odex files is likely to
change overtime for a variety of reasons and you should not try to move them
from one device to another, especially if
they run different versions of the platform.

It would be better if you could tell us which kind of errors you're seeing
so that we can help you resolve them.
Post by Isaac Waller
Hello,
I have a .odex and a .apk file. I understand that the .odex is just
the classes.dex file extracted, so if there is some way I can put it
back in so I can install it on the emulator? I am getting errors about
classes.dex without that.
Thanks,
Isaac
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-***@googlegroups.com
To unsubscribe from this group, send email to
android-developers-***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Loading...