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