我的Android项目使用Maven来控制依赖项,我正在尝试使用Jake Wharton的ActionBarSherlock maps-plugin。
我已将Jake的Maven存储库添加到我的pom.xml文件中,并尝试使用IntelliJ IDEA Update按钮更新我的本地存储库,但它总是返回错误。
你能帮助我吗?
杰克沃顿的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>
答案 0 :(得分:0)
我已将类代码复制到我的包中,并将以下行添加到我的AndroidManifest.xml中:
<uses-library android:name="com.google.android.maps" />