m3-rc20 is my other question. I never use m3-rc20 before when this
problem happened. No matter how I change the android version and
ANDROID_SDK env parameter. m3-rc20 is never changed. And it seems aapt
never supports "compile" option in any version. I have some worry
about "compile" and "m3-rc20" are hard coded in the code.

On Jan 9, 7:10 am, Xavier Ducrohet <[email protected]> wrote:
> I don't know anything about building Android application with Maven.
>
> However, seeing references to m3-rc20a is a good indication that
> whatever it is you're using is obsolete.
> m3-rc20 is the first SDK we released back in November 07 and it is
> extremely out of date in both API and tools.
>
> Nothing developed with that SDK will work on a released Android phone.
>
> I'd recommend using 1.0_r2
>
> Xav
>
> On Wed, Jan 7, 2009 at 9:40 PM, [email protected]
>
> <[email protected]> wrote:
>
> > Hi all,
>
> > I followed the GettingStarted. After I created project with
> > activitycreator. I ran mvn install. But I get this error below. I
> > changed different version of android but the error is still. I am
> > using the same pom.xml as the example.
>
> > Anyone can help have a look. Thanks.
>
> > =============================logs===============================================
> > C:\work\Google-Android\phase2\android-maven\testAndroidMaven>mvn
> > install
> > [INFO] Scanning for projects...
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Building maven-test
> > [INFO]    task-segment: [install]
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] [aidl:generate]
> > [INFO] ANDROID-904-002: Found aidl files: Count = 0
> > [INFO] [resources:resources]
> > [INFO] Using default encoding to copy filtered resources.
> > [INFO] [aapt:compile]
> > android/android/m3-rc20a/android-m3-rc20a.jar
> > [INFO] aapt [compile, -m, -J, C:\work\Google-Android\phase2\android-
> > maven\testA
> > droidMaven\src, -M, C:\work\Google-Android\phase2\android-maven
> > \testAndroidMave
> > \AndroidManifest.xml, -S, C:\work\Google-Android\phase2\android-maven
> > \testAndro
> > dMaven\res, -I, C:\products\.m2\repository\android\android\m3-rc20a
> > \android-m3-
> > c20a.jar]
> > [ERROR] ERROR: Unknown command 'compile'
> > [ERROR] Android Asset Packaging Tool
> > [ERROR]
> > [ERROR] Usage:
> > [ERROR]  aapt l[ist] [-v] [-a] file.{zip,jar,apk}
> > [ERROR]    List contents of Zip-compatible archive.
> > [ERROR]
> > [ERROR]  aapt d[ump] WHAT file.{apk} [asset [asset ...]]
> > [ERROR]    permissions      Print the permissions from the APK.
> > [ERROR]    resources        Print the resource table from the APK.
> > [ERROR]    configurations   Print the configurations in the APK.
> > [ERROR]    xmltree          Print the compiled xmls in the given
> > assets.
> > [ERROR]
> > [ERROR]  aapt p[ackage] [-f][-u][-m][-v][-x][-M AndroidManifest.xml] \
> > [ERROR]         [-I base-package [-I base-package ...]] \
> > [ERROR]         [-A asset-source-dir] [-P public-definitions-file] \
> > [ERROR]         [-S resource-sources] [-F apk-file] [-J R-file-dir] \
> > [ERROR]         [raw-files-dir [raw-files-dir] ...]
> > [ERROR]
> > [ERROR]    Package the android resources.  It will read assets and
> > resources th
> > t are
> > [ERROR]    supplied with the -M -A -S or raw-files-dir arguments.  The
> > -J -P -F
> > and -R
> > [ERROR]    options control which files are output.
> > [ERROR]
> > [ERROR]  aapt r[emove] [-v] file.{zip,jar,apk} file1 [file2 ...]
> > [ERROR]    Delete specified files from Zip-compatible archive.
> > [ERROR]
> > [ERROR]  aapt a[dd] [-v] file.{zip,jar,apk} file1 [file2 ...]
> > [ERROR]    Add specified files to Zip-compatible archive.
> > [ERROR]
> > [ERROR]  aapt v[ersion]
> > [ERROR]    Print program version.
> > [ERROR]
> > [ERROR]  Modifiers:
> > [ERROR]    -a  print Android-specific data (resources, manifest) when
> > listing
> > [ERROR]    -c  specify which configurations to include.  The default
> > is all
> > [ERROR]        configurations.  The value of the parameter should be a
> > comma
> > [ERROR]        separated list of configuration values.  Locales should
> > be speci
> > ied
> > [ERROR]        as either a language or language-region pair.  Some
> > examples:
> > [ERROR]             en
> > [ERROR]             port,en
> > [ERROR]             port,land,en_US
> > [ERROR]        If you put the special locale, zz_ZZ on the list, it
> > will perfor
>
> > [ERROR]        pseudolocalization on the default locale, modifying all
> > of the
> > [ERROR]        strings so you can look for strings that missed the
> > [ERROR]        internationalization process.  For example:
> > [ERROR]             port,land,zz_ZZ
> > [ERROR]    -d  one or more device assets to include, separated by
> > commas
> > [ERROR]    -f  force overwrite of existing files
> > [ERROR]    -j  specify a jar or zip file containing classes to include
> > [ERROR]    -m  make package directories under location specified by -J
> > [ERROR]    -u  update existing packages (add new, replace older,
> > remove deleted
> > files)
> > [ERROR]    -v  verbose output
> > [ERROR]    -x  create extending (non-application) resource IDs
> > [ERROR]    -z  require localization of resource attributes marked with
> > [ERROR]        localization="suggested"
> > [ERROR]    -A  additional directory in which to find raw asset files
> > [ERROR]    -F  specify the apk file to output
> > [ERROR]    -I  add an existing package to base include set
> > [ERROR]    -J  specify where to output R.java resource constant
> > definitions
> > [ERROR]    -M  specify full path to AndroidManifest.xml to include in
> > zip
> > [ERROR]    -P  specify where to output public resource definitions
> > [ERROR]    -S  directory in which to find resources
> > [ERROR]    -0  don't compress files we're adding
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] BUILD ERROR
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO]
>
> > Embedded error: ANDROID-040-001: Could not execute: Command = aapt
> > compile -m -
> >  C:\work\Google-Android\phase2\android-maven\testAndroidMaven\src -M C:
> > \work\Go
> > gle-Android\phase2\android-maven\testAndroidMaven\AndroidManifest.xml -
> > S C:\wor
> > \Google-Android\phase2\android-maven\testAndroidMaven\res -I C:
> > \products\.m2\re
> > ository\android\android\m3-rc20a\android-m3-rc20a.jar, Result = 2
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] For more information, run Maven with the -e switch
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Total time: 1 second
> > [INFO] Finished at: Thu Jan 08 16:34:17 EST 2009
> > [INFO] Final Memory: 6M/127M
> > [INFO]
> > ------------------------------------------------------------------------
--~--~---------~--~----~------------~-------~--~----~
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