【发布时间】:2014-09-30 20:54:45
【问题描述】:
我试图在 eclipse 中为 android wear 创建一个新项目,但是主布局有问题我现在不知道如何解决它,这是我的主布局:
<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 的副本。
【问题讨论】:
-
我不认为
http://schemas.android.com/apk/res-auto有一个名为rectLayout的属性