ActionbarSherlock converting to maven build Error

29 views
Skip to first unread message

Dan Mashuda

unread,
Aug 27, 2014, 9:05:28 AM8/27/14
to actionba...@googlegroups.com
So I have been tasked with converting an android app that uses Actionbarsherlock to a maven build. I am receiving the following errors:

 unpacked-libs\ca_actionbarsherlock\res\drawable\abs__item_background_holo_dark.xml:20: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/abs__list_selector_disabled_holo_dark').
unpacked-libs\ca_actionbarsherlock\res\drawable\abs__item_background_holo_dark.xml:21: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/abs__list_selector_disabled_holo_dark').

There are many more errors like this.

The following is my pom.xml:

<?xml version="1.0" encoding="UTF-8"?>
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
<modelVersion>4.0.0</modelVersion>
<groupId>com.mycom</groupId>
<artifactId>myproduct.android</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>apk</packaging>
<name>Mycom Android</name>

<dependencies>
<dependency>
<groupId>com.google.android</groupId>
<artifactId>android</artifactId>
<version>4.1.1.4</version>
<scope>provided</scope>
</dependency>


<dependency>
<groupId>com.actionbarsherlock</groupId>
<artifactId>library</artifactId>
<version>4.2.0</version>
<type>apklib</type>
</dependency>


<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-mapper-asl</artifactId>
<version>1.9.4</version>
<type>jar</type>
</dependency>

<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.4</version>
<type>jar</type>
</dependency>



<dependency>
<groupId>ch.acra</groupId>
<artifactId>acra</artifactId>
<version>4.4.0</version>
<type>jar</type>
</dependency>

<dependency>
<groupId>com.github.cwac</groupId>
<artifactId>cwac-adapter</artifactId>
<version>1.0.1</version>
<type>apklib</type>
</dependency>

<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava-jdk5</artifactId>
<version>13.0</version>
<type>jar</type>
</dependency>

<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
<version>1.3.9</version>
</dependency>


</dependencies>


<build>
<finalName>${project.artifactId}</finalName>
<sourceDirectory>src/main/java</sourceDirectory>
<pluginManagement>
<plugins>
<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
<version>3.9.0-rc.2</version>
<extensions>true</extensions>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project> 


Any insight as to what I am doing wrong would be awesome.






Reply all
Reply to author
Forward
0 new messages