[英]SlidingMenu and Maven
When trying to add SlidingMenu as a dependecy like below: 当尝试将SlidingMenu添加为依赖性时 ,如下所示:
<dependency>
<groupId>com.slidingmenu</groupId>
<artifactId>parent</artifactId>
<version>1.2</version>
<type>pom</type>
</dependency>
I get an error saying it cannot find SlidingMenu. 我得到一个错误,说它找不到SlidingMenu。 Is the dependency correct? 依赖性是否正确? I haven't found it defined anywhere. 我没有在任何地方找到它。
You have at least two issues. 你至少有两个问题。
install
plugin: http://maven.apache.org/plugins/maven-install-plugin/examples/specific-local-repo.html 您需要手动下载并构建项目,然后使用install
插件安装在本地存储库中: http : //maven.apache.org/plugins/maven-install-plugin/examples/specific-local-repo.html artifactId
and type
elements are incorrect. artifactId
和type
元素不正确。 Looking at the project link, the artifact ID is slidingmenu
, and the type should be apklib
. 综观项目链接,该工件ID是slidingmenu
,类型应apklib
。 Note that I haven't looked very deeply; 请注意,我没有看得太深; there may be other modules in that project. 该项目可能还有其他模块。 Also, Maven may or may not be able to properly combine the apklib
dependency type. 此外,Maven可能或可能无法正确组合apklib
依赖类型。 I haven't used Maven to build Android, so don't know what the configuration is, but would suspect it requires some use of the assembly plugin. 我没有使用Maven来构建Android,所以不知道配置是什么,但是怀疑它需要使用程序集插件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.