Android Wear模块中的“意外的名称空间前缀“ app””

The*_*ian 3 android android-wear-data-api android-wear-complication

我根据此Google文档添加了一个新的Android Wear模块

但出现标题中描述的错误。这是我的布局。

<?xml version="1.0" encoding="utf-8"?>
<android.support.wear.widget.BoxInsetLayout 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:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/dark_grey"
    android:padding="@dimen/box_inset_layout_padding"
    tools:context=".MainWearActivity"
    tools:deviceIds="wear">  

    <FrameLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:padding="@dimen/inner_frame_layout_padding"
        app:boxedEdges="all">  <---this is the offending line 

        <android.support.v7.widget.AppCompatTextView
            android:id="@+id/text"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/hello_world" />

    </FrameLayout>
</android.support.wear.widget.BoxInsetLayout>
Run Code Online (Sandbox Code Playgroud)

有人知道发生了什么吗?感谢您对我为什么收到此错误的解释。更新:我删除了多余的android前缀。Android Studio要求我更改应用程序前缀以更改为android,但即使这样做,错误仍然存​​在。现在是安全的时间来假设它是一个错误吗?

The*_*ian 6

Based on what Mike M suggested, I right clicked on the error and I selected suppress in Android studio. My Framelayout now looks like this. I do not however currently know what caused the warning.

<FrameLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:padding="@dimen/inner_frame_layout_padding"
        app:boxedEdges="all"
        tools:ignore="MissingPrefix">
Run Code Online (Sandbox Code Playgroud)

This seems to work for now.