简体   繁体   中英

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>

我已将类代码复制到我的包中,并将以下行添加到我的AndroidManifest.xml中:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM