我正在尝试为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