我正在嘗試爲eclipse中的android磨損創建一個新項目,但主佈局中存在一個問題我現在不怎麼解決這個問題,這是我主要佈局:錯誤「找不到屬性'rectLayout'的資源標識符'
<android.support.wearable.view.WatchViewStub
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/watch_view_stub"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:rectLayout="@layout/rect"
app:roundLayout="@layout/round"
tools:context=".MyActivity"
tools:deviceIds="wear">
</android.support.wearable.view.WatchViewStub>
它給我這個錯誤:
Multiple annotations found at this line:
- error: No resource identifier found for attribute 'rectLayout' in package
'com.example.wear'
- error: No resource identifier found for attribute 'roundLayout' in package
'com.example.wear'
我的項目有兩個佈局「rect.xml」和「round.xml」,它是編譯4.4W和目標是4.4W,我也有libs文件夾中的classes.jar的副本。
我不認爲有一個名爲rectLayout爲'http://schemas.android.com/apk屬性/ res-auto' – zgc7009 2014-09-30 21:03:31