1

我的 Android 项目正在使用 Maven 来控制依赖项,我正在尝试使用来自 Jake Wharton 的 ActionBarSherlock 地图插件。

我已将 Jake 的 Maven 存储库添加到我的 pom.xml 文件中,并尝试使用 IntelliJ IDEA 更新按钮更新我的本地存储库,但它总是返回错误。

你能帮助我吗?

来自 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>
4

1 回答 1

0

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

    <uses-library android:name="com.google.android.maps" />
于 2012-12-21T15:21:57.700 回答