【发布时间】:2013-08-30 02:30:03
【问题描述】:
我已经使用 maven-android-plugin 创建了一个 android 应用程序,我想使用 Android-ViewPagerIndicator 并在 pom.xml 中添加了依赖项。
<dependency>
<groupId>com.viewpagerindicator</groupId>
<artifactId>library</artifactId>
<version>2.4.1</version>
<type>apklib</type>
</dependency>
但如果我使用 Android-ViewPagerIndicator 中的类,我的 android 应用程序会出现编译错误。
TitlePageIndicator cannot be resolved to a type
我在 Eclipse 中遇到了上述错误。
我还需要下载库,将其导入eclipse并在eclipse中引用吗?
(对不起,如果这是一个愚蠢的问题,因为这是我的第一个 Android-Maven 项目)
【问题讨论】:
-
您是否在 Eclipse 中遇到此错误?
-
是的,它在 Eclipse 中出现编译错误,而不是在使用 maven 构建时。我需要下载库项目并将其引用到我的主项目吗?
标签: android maven android-maven-plugin