Android 未找到属性';重力指示器';打包

Android 未找到属性';重力指示器';打包,android,xml,treeview,expandablelistview,Android,Xml,Treeview,Expandablelistview,最近我尝试将树状视图列表移植到我的项目中。我创建了一个名为com.dotnetideas.treeview的项目,并在中添加了所有内容。我可以毫无问题地运行演示。但当我在另一个项目中使用它时,我一直在main_demo.xml中获得“在包com.dotnetideas.treeview中找不到属性'indicator_gravity'的资源标识符”。 下面是xml的外观 <?xml version="1.0" encoding="utf-8"?> <LinearLayo

最近我尝试将树状视图列表移植到我的项目中。我创建了一个名为com.dotnetideas.treeview的项目,并在中添加了所有内容。我可以毫无问题地运行演示。但当我在另一个项目中使用它时,我一直在main_demo.xml中获得“在包com.dotnetideas.treeview中找不到属性'indicator_gravity'的资源标识符”。 下面是xml的外观

    <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:treeView="http://schemas.android.com/apk/res/com.dotnetideas.treeview"
  android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
  <ListView android:layout_width="0dip" android:layout_height="0dip" android:scrollbars="vertical"
    android:visibility="gone"> <!-- Just to test some attributes in IDE -->
  </ListView>
  <pl.polidea.treeview.TreeViewList android:id="@+id/mainTreeView" android:layout_width="fill_parent"
    android:layout_height="fill_parent" treeView:indicator_gravity="right|center_vertical"
    android:scrollbars="vertical" android:smoothScrollbar="true"/>

xmlns:treeView=http://schemas.android.com/apk/res/com.dotnetideas.treeview. 
它似乎不是有效的xml名称空间

事实证明,名称空间需要

xmlns:treeView="http://schemas.android.com/apk/res-auto" 
如果我们将引用作为库项目

从stackoverflow也没有帮助

xmlns:treeView="http://schemas.android.com/apk/res-auto"