Android Maven Eclipse仍然可以';进口apklib
我有一个Android Maven项目,我正在尝试使用Eclipse。我也在使用Android支持v7 AppCompat库。在pom.xml中,我同时导入apklib和jar。我已经尝试更新到m2e android插件的0.4.3-SNAPSHOT版本,但仍然出现错误Android Maven Eclipse仍然可以';进口apklib,android,eclipse,maven,m2e,Android,Eclipse,Maven,M2e,我有一个Android Maven项目,我正在尝试使用Eclipse。我也在使用Android支持v7 AppCompat库。在pom.xml中,我同时导入apklib和jar。我已经尝试更新到m2e android插件的0.4.3-SNAPSHOT版本,但仍然出现错误 Description Resource Path Location Type dependency=[android.support:compatibility-v7-appcompat:apklib
Description Resource Path Location Type
dependency=[android.support:compatibility-v7-appcompat:apklib:18:compile] not found in workspace pom.xml /Studio54 line 1 me.gladwell.eclipse.m2e.android.markers.dependency.apklib
这是我的pom.xml
http://maven.apache.org/maven-v4_0_0.xsd">
4.0.0
com.lhs.app
研究54
0.0.7-快照
apk
研究54
<repositories>
<repository>
<id>ossSonatype</id>
<url>https://oss.sonatype.org/content/groups/public</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<properties>
<platform.version>4.3_r1</platform.version>
</properties>
<dependencies>
<dependency>
<groupId>android</groupId>
<artifactId>android</artifactId>
<version>${platform.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>android.support</groupId>
<artifactId>compatibility-v4</artifactId>
<version>18</version>
</dependency>
<dependency>
<groupId>android.support</groupId>
<artifactId>compatibility-v7-appcompat</artifactId>
<version>18</version>
<type>apklib</type>
</dependency>
<dependency>
<groupId>android.support</groupId>
<artifactId>compatibility-v7-appcompat</artifactId>
<version>18</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.2.4</version>
</dependency>
<dependency>
<groupId>com.google.android</groupId>
<artifactId>volley</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.testflight</groupId>
<artifactId>lib</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>org.robolectric</groupId>
<artifactId>robolectric</artifactId>
<version>2.2-SNAPSHOT</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.9</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>1.9.5</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
<version>3.6.1</version>
<configuration>
<androidManifestFile>${project.basedir}/AndroidManifest.xml</androidManifestFile>
<assetsDirectory>${project.basedir}/assets</assetsDirectory>
<resourceDirectory>${project.basedir}/res</resourceDirectory>
<nativeLibrariesDirectory>${project.basedir}/src/main/native</nativeLibrariesDirectory>
<sdk>
<platform>16</platform>
</sdk>
<undeployBeforeDeploy>true</undeployBeforeDeploy>
</configuration>
<extensions>true</extensions>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.5.1</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
</build>
骨质疏松型
https://oss.sonatype.org/content/groups/public
真的
真的
4.3_r1
安卓
安卓
${platform.version}
假如
android.support
兼容性-v4
18
android.support
兼容性-v7-appcompat
18
apklib
android.support
兼容性-v7-appcompat
18
罐子
com.google.code.gson
格森
2.2.4
com.google.android
截击
0.0.1-快照
com.testflight
解放党
1
有机分子
生物分子
2.2-2快照
测试
朱尼特
朱尼特
4.9
测试
org.mockito
莫基托磁芯
1.9.5
测试
com.jayway.maven.plugins.android.generation2
安卓maven插件
3.6.1
${project.basedir}/AndroidManifest.xml
${project.basedir}/assets
${project.basedir}/res
${project.basedir}/src/main/native
16
真的
真的
maven编译器插件
2.5.1
1.6
1.6
您可以尝试更新您的android sdk。并从“帮助”->“检查更新”选项卡中检查eclipse更新。您是否在本地工作区签出了依赖库的源代码树?由于ADT的限制,您仍然需要此源代码树。不,我没有。所讨论的库是android v7 AppCompat库(带操作栏的)。我想在Android SDK本身中使用该版本,或者如果源代码已下载到我的本地Maven存储库,我应该使用该版本吗?源代码似乎在Github上镜像:您需要对项目进行mavenise,以便m2e Android能够检测到它。除了com之外,我还需要签出并对您链接的项目进行mavenize我从SDK目录中创建的兼容性库?