我使用这个库项目:https://github.com/JakeWharton/Android-ViewPagerIndicator
为了使它在我的项目中正常工作,我创建了一个基于git提供的源代码的新项目,并将其引用到我的最终项目中。一切都很好。我在我的最终项目中这样使用它:
<com.viewpagerindicator.TitlePageIndicator
android:id="@+id/indicator"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
我希望避免使用该库项目的引用,而是在我的最终项目中使用一个简单的jar包。我已经将在库项目中生成的jar包添加到Java Build Path中的最终项目中。但当我运行它时,出现了错误:
12-09 10:57:34.714: E/AndroidRuntime(10492): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.test/com.test.SettingsActivity}: android.view.InflateException: Binary XML file line #7: Error inflating class com.viewpagerindicator.TitlePageIndicator
我想知道是否有可能实现我想要的目标?