Error Android version missing

2 views
Skip to first unread message

Askia

unread,
Mar 1, 2009, 2:20:46 PM3/1/09
to Masa Developers
Hello all,
Following the getting started instructions I downloaded the android
sdk and the masa plugins.
I get stuck at step 7 after creating pom xml. The pom xml in question
is just a modification of the sample pom included in the readme file.
I had initially downloaded the 1.0_r2 sdk then noticed that the code
was referencing 1.1_r1. So i also downloaded the 1.1_r1 dev version
and changed my android variable to point to the new path. I am still
getting the same error.
Can you please help?

mvn -X install:install-file -Dfile=$ANDROID_SDK/android.jar -
DgeneratePom=true -DgroupId=android -DartifactId=android -
Dversion=1.1_r1 -Dpackaging=jar

<pre><code>
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.askiatek.kbdroid</groupId>
<artifactId>kbdroid-sample</artifactId>
<version>1.0.1-sandbox</version>
<packaging>android:apk</packaging>
<name>kbdroid sample</name>
<description>Maven Plugin for Android DX kbdroid sample</
description>
<dependencies>
<dependency>
<groupId>android</groupId>
<artifactId>android</artifactId>
<version>1.1_r1</version>
</dependency>
</dependencies>
<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
<plugin>
<groupId>org.jvending.masa.plugins</groupId>
<artifactId>maven-dx-plugin</artifactId>
<extensions>true</extensions>
</plugin>
</plugins>
</build>
</project>

</code></pre>


askia@ubuntu-desktop32:~/workspace/kbdroid/kbdroid$ mvn install
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Building kbdroid sample
[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]
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] An invalid artifact was detected.

This artifact might be in your project's POM, or it might have been
included transitively during the resolution process. Here is the
information we do have for this artifact:

o GroupID: android
o ArtifactID: android
o Version: <<< MISSING >>>
o Type: jar

[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.artifact.InvalidArtifactRTException: For artifact
{android:android:null:jar}: The version cannot be empty.
at org.apache.maven.artifact.DefaultArtifact.validateIdentity
(DefaultArtifact.java:147)
at org.apache.maven.artifact.DefaultArtifact.<init>
(DefaultArtifact.java:122)
at
org.apache.maven.artifact.factory.DefaultArtifactFactory.createArtifact
(DefaultArtifactFactory.java:158)
at
org.apache.maven.artifact.factory.DefaultArtifactFactory.createArtifact
(DefaultArtifactFactory.java:117)
at
org.apache.maven.artifact.factory.DefaultArtifactFactory.createArtifact
(DefaultArtifactFactory.java:111)
at
org.apache.maven.artifact.factory.DefaultArtifactFactory.createArtifact
(DefaultArtifactFactory.java:40)
at org.jvending.masa.plugin.aapt.AaptCompilerMojo.execute
(AaptCompilerMojo.java:109)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo
(DefaultPluginManager.java:451)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
(DefaultLifecycleExecutor.java:558)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:499)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
(DefaultLifecycleExecutor.java:478)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:330)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments
(DefaultLifecycleExecutor.java:291)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
(DefaultLifecycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:
315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:
430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Sun Mar 01 14:15:04 EST 2009
[INFO] Final Memory: 8M/123M
[INFO]
------------------------------------------------------------------------
Reply all
Reply to author
Forward
0 new messages