I'm trying to add Facebook dependency to my project.
I tried adding the following to my pom.xml:
<dependency>
<groupId>com.facebook.android</groupId>
<artifactId>facebook-android-sdk</artifactId>
<version>4.1.0</version>
<type>aar</type>
</dependency>
And suddenly none of the previously accepted dependencies is found:
When I exclude support-v4
library
<dependency>
<groupId>com.facebook.android</groupId>
<artifactId>facebook-android-sdk</artifactId>
<version>4.1.0</version>
<type>aar</type>
<exclusions>
<exclusion>
<artifactId>support-v4</artifactId>
<groupId>com.android.support</groupId>
</exclusion>
</exclusions>
</dependency>
I don't have as many errors,
but it does not seem to include my dependency:
Is there anything I'm missing there?
Here's my build :
<build>
<plugins>
<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
<version>${android.maven.version}</version> <!-- 4.0.0-rc.2 -->
<goals>
<goal>consume-aar</goal>
</goals>
<extensions>true</extensions>
<configuration>
<sdk>
<platform>${platform.version}</platform> <!-- 4.3 -->
</sdk>
<deleteConflictingFiles>true</deleteConflictingFiles>
<undeployBeforeDeploy>true</undeployBeforeDeploy>
</configuration>
</plugin>
</plugins>
</build>
--- EDIT ----
The dependency tree seems fine:
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ konnect-android ---
[INFO] com.company:project-android:apk:1.0.0
[INFO] +- com.company:project-shared:jar:1.0.0:compile
[INFO] +- com.google.android:android:jar:4.1.1.4:provided
[INFO] | +- commons-logging:commons-logging:jar:1.1.1:provided
[INFO] | +- org.apache.httpcomponents:httpclient:jar:4.0.1:provided
[INFO] | | +- org.apache.httpcomponents:httpcore:jar:4.0.1:provided
[INFO] | | \- commons-codec:commons-codec:jar:1.3:provided
[INFO] | +- org.khronos:opengl-api:jar:gl1.1-android-2.1_r1:provided
[INFO] | +- xerces:xmlParserAPIs:jar:2.6.2:provided
[INFO] | \- xpp3:xpp3:jar:1.1.4c:provided
[INFO] +- com.marvinlabs:android-slideshow-widget:jar:0.5.0:compile
[INFO] +- com.marvinlabs:android-slideshow-widget-picasso- plugin:jar:0.5.0:compile
[INFO] +- com.squareup.okhttp:okhttp:jar:2.3.0:compile
[INFO] | \- com.squareup.okio:okio:jar:1.3.0:compile
[INFO] +- com.squareup.okhttp:okhttp-urlconnection:jar:2.3.0:compile
[INFO] +- com.squareup.picasso:picasso:jar:2.5.2:compile
[INFO] +- com.parse.bolts:bolts-android:jar:1.2.0:compile
[INFO] +- com.facebook.android:facebook-android-sdk:aar:4.1.0:compile
[INFO] +- junit:junit:jar:4.11:test
[INFO] | \- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] \- com.facebook.android:facebook-android-sdk:jar:4.1.0:system