简体   繁体   English

无法从Maven添加ActionBarSherlock地图插件

[英]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. 我的Android项目正在使用Maven来控制依赖关系,而我正在尝试使用来自Jake Wharton的ActionBarSherlock maps-plugin。

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. 我已将Jake的Maven存储库添加到我的pom.xml文件中,并尝试使用IntelliJ IDEA更新按钮来更新本地存储库,但它始终返回错误。

Can you help me? 你能帮助我吗?

Content from Jake Wharton's github: 杰克·沃顿(Jake Wharton)的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" />

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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