Hi,
On 17/02/2015 23:19, Roberto Simoni wrote:
> Hi, I'm trying to use appcompat ActionBar and to do that I have added
> follow dependencies:
>
You seem to be using a mix of aar and apklib/jar dependencies. The
former replaces the latter.
From memory there is also a bug in the appcompat-v7 pom that places a
dependency on the jar version of support-v4 rather than aar. To work
around that you have to exclude that from the v7 aar dependency and add
it explicitly.
Relevant changes are listed below.
> [...]
>
> <android.platform.version.semantic>4.4.2_r4</android.platform.version.semantic>
> <android.support.version>21.0.3</android.support.version>
> [...]
> <dependency>
> <groupId>com.android.support</groupId>
> <artifactId>appcompat-v7</artifactId>
> <version>${android.support.version}</version>
> <type>aar</type>
<exclusions>
<exclusion>
<groupId>com.android.support</groupId>
<artifactId>support-v4</artifactId>
</exclusion>
</exclusions>
> </dependency>
<dependency>
<groupId>com.android.support</groupId>
<artifactId>support-v4</artifactId>
<scope>compile</scope>
<type>aar</type>
</dependency>
Then remove the following 2 dependencies on compatibility-v7-appcompat.
> <dependency>
> <groupId>android.support</groupId>
> <artifactId>compatibility-v7-appcompat</artifactId>
> <version>${android.support.version}</version>
> <type>apklib</type>
> </dependency>
> <dependency>
> <groupId>android.support</groupId>
> <artifactId>compatibility-v7-appcompat</artifactId>
> <version>${android.support.version}</version>
> <type>jar</type>
> <scope>provided</scope>
> </dependency>
>
Hope that helps.
Richard
> --
> You received this message because you are subscribed to the Google
> Groups "Maven Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
maven-android-deve...@googlegroups.com
> <mailto:
maven-android-deve...@googlegroups.com>.
> For more options, visit
https://groups.google.com/d/optout.