The only thing the --debug-mode parameters is doing is inserting
"debuggable=true" in the manifest. (see the aapt help output)

Note that the command line you showed only packages the resources in
the apk. You'll need to add classes.dex manually to it, as well as any
other file you may need (java resources, native libraries).

Our command line build is complex, this is why we provide a full Ant
rules file. I encourage you to use it, or at a minimum to look at it
if you want to build your own build system.

Xav

On Tue, May 17, 2011 at 9:25 PM, bburd <[email protected]> wrote:
> I'm trying to use command line tools to develop an Android app. I'm
> calling aapt as follows:
>
> "C:\Program Files (x86)\Android\android-sdk\platform-tools\aapt.exe"
> package -f --debug-mode -M C:\MyProjects\MyAndroidProject
> \AndroidManifest.xml -S C:\MyProjects\MyAndroidProject\res -I "C:
> \Program Files (x86)\Android\android-sdk\platforms
> \android-9\android.jar" -F C:\MyProjects\MyAndroidProject\bin
> \MyActivity-debug-unaligned.apk
>
> I assume that, because I've specified --debug-mode, aapt will attach a
> debug certificate, making my app runnable on an emulator. But I keep
> getting the message
> Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]
>
> How can I diagnose the problem?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.
http://developer.android.com | http://tools.android.com

Please do not send me questions directly. Thanks!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to