Announcement Announcement Module
Collapse
No announcement yet.
Building Android Projects with Maven Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Building Android Projects with Maven

    Hello guys! I have unziped the source code of the guide Building Android Projects with Maven, but the command "mvn compile" (executed at folder gs-maven-android-master\complete) is reporting a build error.

    Using Maven version 3.0.5 (used throughout the guide):

    [ERROR] Failed to execute goal com.jayway.maven.plugins.android.generation2:andro id-maven-plugin:3.6.1:generate-sources (default-generate-sources) on
    project gs-maven-android: Execution default-generate-sources of goal com.jayway.maven.plugins.android.generation2:andro id-maven-plugin:3.6.1:generate-
    sources failed: A required class was missing while executing com.jayway.maven.plugins.android.generation2:andro id-maven-plugin:3.6.1:generate-sources:
    com/android/sdklib/SdkManager

    Using Maven version 3.1.1 (latest):

    [ERROR] Failed to execute goal com.jayway.maven.plugins.android.generation2:andro id-maven-plugin:3.6.1:generate-sources (default-generate-sources) on
    project gs-maven-android: Execution default-generate-sources of goal com.jayway.maven.plugins.android.generation2:andro id-maven-plugin:3.6.1:generate-
    sources failed: A required class was missing while executing com.jayway.maven.plugins.android.generation2:andro id-maven-plugin:3.6.1:generate-sources:
    Lorg/sonatype/aether/RepositorySystem;

    Does anyone already faced such errors?

    What is wrong?

    Other information:

    JVM Version = 1.7.021
    ANDROID_HOME = c:\Android\android-sdk
    M2M_HOME = c:\Apache\apache-maven-3.0.5 (1a execution)
    M2M_HOME = c:\Apache\apache-maven-3.1.1 (2a execution)

  • #2
    This guide has been updated to use the Maven Android Plugin 3.8.2, which requires Maven 3.1.1. This should resolve the issue you are seeing.

    Comment

    Working...
    X