错误:找不到包含属性'showOuterShadow'的资源标识符
问题描述:
我正在开发一个由标尺视图组成的应用程序。我在这里发现了代码https://github.com/CodeAndMagic/GaugeView 我收到一个错误消息,找到没有资源标识符forattribute'showOuterShadow'in package 'org.codeandmagic.android.gauge.demo。我添加了库项目的Java构建路径,但它仍然存在,请帮我解决这个问题,这是我的XML代码:错误:找不到包含属性'showOuterShadow'的资源标识符
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:gauge="http://schemas.android.com/apk/res/org.codeandmagic.android.gauge.demo"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:gravity="center"
android:background="@drawable/background"
android:padding="20dp" >
<org.codeandmagic.android.gauge.GaugeView
android:id="@+id/gauge_view1"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" />
<org.codeandmagic.android.gauge.GaugeView <!--Error occurring here-->
android:id="@+id/gauge_view2"
android:layout_width="150dp"
android:layout_height="150dp"
android:layout_marginTop="10dp"
gauge:showOuterShadow="true"
gauge:showOuterRim="false"
gauge:showNeedle="false"
gauge:showRanges="false"
gauge:showText="true"
gauge:textUnit="%" />
</LinearLayout>
答
这太荒谬回答我的问题: 我没有” t在我的android项目中添加库 您的项目 - > RIGHTCLICK-> POPERTIES-> ANDROID-> CLICK“ADD” - > SELECT LIBRARY-> CLICK“APPLY” - > CLICK“OK” - >运行您的项目
您是否已将库添加到项目的属性 - > Android->添加库? –
感谢您的答复老兄,我没有检查。后来我检查了它,我清除了我的问题。 – Sundeep