Search code examples
androidintellij-ideaactionbarsherlockactionbarsherlock-map

Can't add ActionBarSherlock maps plugin from Maven


My Android project is using Maven to control dependencies and I'm trying to use ActionBarSherlock maps-plugin from Jake Wharton.

I've added Jake's Maven Repository to my pom.xml file and tried to have my local repository updated by using IntelliJ IDEA Update button, but it always returns an error.

Can you help me?

Content from Jake Wharton's github:

    <!-- If you are a Maven user you can easily include the library by specifying it as a dependency: -->

    <dependency>
       <groupId>com.actionbarsherlock</groupId>
       <artifactId>plugin-maps</artifactId>
      <version><!-- LATEST PLUGIN VERSION --></version>
    </dependency>

    <!-- Since the Google Maps APIs are not available in central this plugin is deployed to Jake Wharton's personal repository. You can add it with the following: -->

    <repository>
      <id>com.jakewharton</id>
      <url>http://r.jakewharton.com/maven/release</url>
    </repository>

Solution

  • I've copied the class code to my package and added the following line to my AndroidManifest.xml:

        <uses-library android:name="com.google.android.maps" />