Signing in debug mode

by bburd » Thu, 19 May 2011 02:49:53 GMT


Sponsored Links
 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?

-- 



Re: Signing in debug mode

by TreKing » Thu, 19 May 2011 04:15:06 GMT


 



 http://developer.android.com/guide/developing/building/index.html #detailed-build

*Once the .apk is built, it must be signed with either a debug or release
key before it can be installed to a device.*

-------------------------------------------------------------------------------------------------
TreKing < http://sites.google.com/site/rezmobileapps/treking> ; - Chicago
transit tracking app for Android-powered devices

-- 


Sponsored Links


Re: Signing in debug mode

by Xavier Ducrohet » Thu, 19 May 2011 09:49:22 GMT


 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






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

Please do not send me questions directly. Thanks!

-- 



Re: Signing in debug mode

by bburd » Fri, 20 May 2011 01:52:56 GMT


 Thank you. Understanding what aapt does and doesn't do has solved my
problem.

-- 



Other Threads

1. problem in displaying the google maps

1. Make sure you have the INTERNET permission.

2. Make sure your device or emulator has Internet access. For example,
in the emulator, if you have zero bars of signal strength, your
emulator is emulating having no connectivity.

3. Make sure your API key is in your layout properly.

Here is a sample project known to work -- all you need to do is
replace the API key:

https://github.com/commonsguy/cw-android/tree/master/Maps/NooYawk




-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
Available!

-- 

2. Highlighting an icon in a Gallery widget

Hi,

I have a Gallery widget containing a bunch of icons. When the user
selects one of them, I need to temporarily change the icon's
background color before launching the app associated with the icon.
How do I change the color? I know how to change to color, but not how
to change it back! HELP!!

Bob

-- 

3. Mod: Mari bergabung di milis id-chromeOS

4. Diskusi Iseng: Kenapa Google Ngga Konsisten

5. [WTS] Desire Z Second Like New !

6. Wp7 wannabe

7. Can't access SurfaceFlinger