Reputation: 11053
I need to use a library project
in my project.
But for some reasons a
referenced XML prefix is not recognized.
Here are the steps I did to add the library project:
But the problem is that a used XML reference to the linked library project is not being recognized.
Please help - what did I do wrong when trying to use this library project?
this is the xml file portion in my project with the unrecognized reference:
<org.taptwo.android.widget.CircleFlowIndicator
android:padding="10dip"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:id="@+id/viewflowindic"
android:layout_gravity="center_horizontal"
app:inactiveType="fill"
app:fadeOut="1000" />
where <org.taptwo.android.widget.CircleFlowIndicator
causes the problem.
However I have a linked library folder lib_src
with the sub-folder:
org.taptwo.android.widget
and the contained class file CircleFlowIndicator.java
in my project.
I also have exactly this folder added to my build path.
Please give some advice what could be the reason that I keep getting the problem:
Error parsing XML: unbound prefix
at <org.taptwo.android.widget.CircleFlowIndicator
Many thanks!
Upvotes: 2
Views: 553
Reputation: 4258
I'm not sure that your second step of manually selecting a source folder is necessary.
I think the point of the library referencing in the project's properties is to sort it out for you automatically. Try following the steps exactly as they are here:
http://developer.android.com/guide/developing/projects/projects-eclipse.html
Perhaps a clean and build in Eclipse of all the projects involved might help if your settings are correct.
(Also, you didn't mention selecting 'is library' in the library project's properties, so make sure that's done if you haven't already done it)
Upvotes: 1