|apkbuilder ?||Danny Backx||12/21/10 12:17 AM|
apkbuilder says THIS TOOL IS DEPRECATED (caps not mine).
When I run it from the command line, without any options, it
says (cut somewhat) :
> If you wish to use apkbuilder for a custom build system, please look at the
> com.android.sdklib.build.ApkBuilder which provides support for
> recent build improvements including library projects.
So can someone tell me how/where to "look at" this ?
|Re: [android-developers] apkbuilder ?||Mark Murphy||12/21/10 1:11 AM|
Step #1: Visit http://www.google.com/codesearch
Step #2: Search on:
_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
|Re: apkbuilder ?||Danny Backx||12/23/10 12:14 AM|
I've looked there and I also downloaded the Android src (hence the
delay before this reply).
From the command line (or a Makefile) I end up in the "apkbuilder"
script, this does little except starting
The ApkBuilderMain appears to be very thin : it basically calls
ApkBuilder in one of several ways. And it prints the warning that
It looks like Ant has its own stuff in ApkBuilderTask.java, bypassing
ApkBuilderMain and thus no warning.
Conclusion seems to be that this is a wild goose chase : there's very
little I can do right now except ignoring the message.
Is this the right conclusion or am I missing something ?
Can someone note that leaving such messages (pointing to --help which
isn't there) confuses people ?
On Dec 21, 10:11 am, Mark Murphy <mmur...@commonsware.com> wrote:
> Step #1: Visithttp://www.google.com/codesearch
>> Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
|Re: [android-developers] Re: apkbuilder ?||Mark Murphy||12/23/10 1:04 AM|
On Thu, Dec 23, 2010 at 3:14 AM, Danny Backx <da...@backx.info> wrote:
You might try http://tools.android.com/feedback and open an issue. It
Mark Murphy (a Commons Guy)
http://commonsware.com/blog | http://twitter.com/commonsguy
|Re: [android-developers] Re: apkbuilder ?||Xavier Ducrohet||12/23/10 1:35 AM|
The message you get running apkbuilder is a bit misleading I agree.
I've been very tempted to simply remove the tool but I'm sure that
The issues is that apkbuilder (the script) is just not maintained at
With the introduction of library project, this final step in build
At this time we simply don't have the resources to support people who
The biggest issue would be to extract the logic to deal with library
Unless someone is willing to contribute this, it's unlikely to happen
Please do not send me questions directly. Thanks!
|Re: apkbuilder ?||Danny Backx||12/23/10 2:16 AM|
Thanks for this very clear message.
I've been meaning to look into the library stuff. You might just have
|Re: apkbuilder ?||Bachowny Plamborgs||1/27/11 3:27 AM|
Argh you people are unbelievable!
WHAT is the replacement? WHAT ant command should I call, or failing that WHAT Java class can I start other than ApkBuilderMain?
Seriously, it's great to put a massive deprecation notice into everyone's build script, but at some stage people might want to know how to get rid of it!
I'm no expert on Android, just trying to get started using the tools for my IDE. I'm sorry, but this is like the 18 trillionth thread I've found saying "yes, yes, it IS deprecated, isn't it"...
FOR THE LOVE OF ALL THAT IS SACRED WHAT REPLACED IT???
|Re: [android-developers] Re: apkbuilder ?||Xavier Ducrohet||1/27/11 9:42 AM|
If you're just getting started you really shouldn't try to make your
own build scripts. Therefore you should use the normal Ant build
system, or Eclipse.
Lots of info at
Xavier Ducrohethttp://developer.android.com | http://tools.android.com
|Re: [android-developers] Re: apkbuilder ?||Kris Nuttycombe||3/24/11 10:17 AM|
I help to maintain the SBT (http://code.google.com/p/simple-build-tool/) plugin for Android, which is available here: https://github.com/jberkel/android-plugin and would like to bring it up to date with respect to apkbuilder. If I understand what you've said correctly, part of what would be required to make this really work is to factor out the common library build pieces from the Ant tasks and the Eclipse plugin into the sdklib, or at least to figure out what they're doing and duplicate it in the SBT plugin in order provide library support there. I can devote a couple of days to this. Something that would would be very helpful would be rough pointers to the parts of the Ant and Eclipse libraries that interact with ApkBuilder, or if you have the time a couple of quick notes as to what considerations are important when building library projects.
|Re: [android-developers] Re: apkbuilder ?||Kris Nuttycombe||3/24/11 11:25 AM|
Actually, I think I found a good model for how to approach the work here for SBT; the Maven android plugin went through the same transition, and it looks like it'll serve admirably as a model. For anyone else who might be interested in how to go about this, check out this commit: https://github.com/cescoffier/maven-android-plugin/commit/858df7a989ce5c5cb526a472c4f57953361d2f46