Element adaptive-icon must be declared : <p>I use Android Studio 2.3.3 stable and trying to create adaptive icon for Android O</p>

<p>I've created folder <code>mipmap-anydpi-v26</code> and file <code>ic_launcher.xml</code> with following content</p>

<pre><code>&lt;adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"&gt;
    &lt;background android:drawable="@color/colorAccent"/&gt;
    &lt;foreground android:drawable="@drawable/ic_launcher_adaptive"/&gt;
&lt;/adaptive-icon&gt;
</code></pre>

<p>But it says "Element adaptive-icon must be declared".
Target SDK and build tools are both set to 26.</p>

<p>It builds successfully, but I don't have any device to test it, so my question is - does it works?</p>

<p>P.S.: Foreground is valid VectorDrawable</p>
