4

Every once in a while a borked Eclipse build gets nailed down to the absence of this file, with the simple fix of cleaning the build, or occasionally doing a deeper clean on the project's metadata. I can live with this state of affairs, but the curious side of me has to ask why.

A search for it on developer.android.com turns up nothing :(, and a search on Google turns up various threads by folks wondering why their build is broken.

This guy is the closest thing I've found to an explanation of the thing itself. Hopefully some nice, patient guru can shed some light on the fundamentals here without this noob digging too far into the source :)

Community
  • 1
  • 1
Cheezmeister
  • 4,895
  • 3
  • 31
  • 37

3 Answers3

4

The resource.ap_ is all the resources for you file zipped up. Everything from the res, assets folders and the Manifest file.

The apk file added in the class.dex (all your compiled code) and any linked .so (native code).

Both of these files are in .zip format. They can easily be view by changing the extension to .zip and opening them.

TurqMage
  • 3,321
  • 2
  • 31
  • 52
3

The .ap_ file is probably your apk before it is signed with your certificate (by default, a debug certificate generated by ADT in your home directory.)

Romain Guy
  • 97,993
  • 18
  • 219
  • 200
  • 1
    Do you say "probably" because you're not 100% certain or because the file could be used differently under some circumstances? – Cheezmeister Feb 20 '11 at 21:21
  • Because I'm not 100% certain. – Romain Guy Feb 21 '11 at 01:51
  • I looked at a sample build and the .apk file contains the same files as the .ap_ (res folder, AndroidManifest.xml, and the resources.arsc which contains the binary resources generated by the aapt program), plus classes.dex and a META-INF folder containing the certificates. – John Jorsett Dec 30 '13 at 01:23
1

here is a picture which may give you the answer. enter image description here

jiar wang
  • 360
  • 2
  • 12