I am trying to use com.facebook.android:facebook-android-sdk:3.23.1
in my Android Maven build.
From its pom we can see that it depends on com.android.support:support-v4
:
<dependency>
<groupId>com.android.support</groupId>
<artifactId>support-v4</artifactId>
<version>[21,22)</version>
<scope>compile</scope>
</dependency>
When I install the support-v4
library using maven-android-sdk-deployer
, the library is installed as aar
. However, Maven defaults to looking for the jar
, and I get this error message:
Failed to collect dependencies at
com.facebook.android:facebook-android-sdk:aar:3.23.1 ->
com.android.support:support-v4:jar:[21,22): No versions available for
com.android.support:support-v4:jar:[21,22) within specified range -> [Help 1]
How are people managing to use the Maven versions of this Facebook library in their projects? This question suggests just using the framework source in your project, can't we do better?