title: android:name="com.google.android.wearable.watchface.preview" watchface isn't recognized
body: <p>I am following this two tutorials : <a href="http://swarmnyc.com/whiteboard/how-to-design-and-develop-an-android-watch-face-app-wearables-overview/" rel="nofollow noreferrer">tutorial 1</a> and <a href="https://developer.android.com/training/wearables/watch-faces/service.html" rel="nofollow noreferrer">tutorial 2</a>. However in my <code>AndroidManifest.xml</code> file the following lines have an underline under watchface so I am wondering how I can fix it.
  Here's my source code: <a href="https://github.com/lamiastella/AndroidWearApp" rel="nofollow noreferrer">https://github.com/lamiastella/AndroidWearApp</a></p>
  
  <p><img src="https://i.stack.imgur.com/zHo8w.png" alt="enter image description here">
  I am afraid I might have mistakes in my AndroidManifest.xml comparing to my solution tree shown here:
  <img src="https://i.stack.imgur.com/nJOBR.png" alt="enter image description here">
  Besides I am receiving this error:</p>
  
  <pre><code>06-30 00:54:55.461    1361-1602/com.google.android.gms.wearable W/WearableConn﹕ Error writing to device, error: failed to connect to /10.0.2.2 (port 5601): connect failed: ECONNREFUSED (Connection refused)
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/JLUjf.png" alt="enter image description here"></p>
  
  <p>Here's the code for AndroidManifest.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.example.mona.app1" &gt;
  
      &lt;uses-feature android:name="android.hardware.type.watch" /&gt;
  
      &lt;uses-permission android:name="com.google.android.permission.PROVIDE_BACKGROUND" /&gt;
      &lt;uses-permission android:name="android.permission.WAKE_LOCK" /&gt;
  
      &lt;application
          android:allowBackup="true"
          android:icon="@drawable/ic_launcher"
          android:label="@string/app_name"
          android:theme="@android:style/Theme.DeviceDefault" &gt;
  
          &lt;service
              android:name=".WeatherWatchFaceService"
              android:label="Weather"
              android:allowEmbedded="true"
              android:taskAffinity=""
              android:permission="android.permission.BIND_WALLPAPER" &gt;
              &lt;meta-data
                  android:name="android.service.wallpaper"
                  android:resource="@xml/watch_face" /&gt;
              &lt;meta-data
                  android:name="com.google.android.wearable.watchface.preview"
                  android:resource="@drawable/preview" /&gt;
              &lt;meta-data
                  android:name="com.google.android.wearable.watchface.preview_circular"
                  android:resource="@drawable/preview_circular" /&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.service.wallpaper.WallpaperService" /&gt;
                  &lt;category android:name="com.google.android.wearable.watchface.category.WATCH_FACE" /&gt;
              &lt;/intent-filter&gt;
          &lt;/service&gt;
      &lt;/application&gt;
  &lt;/manifest&gt;
  </code></pre>
  
  <p>Side note: I am not sure why there's a red cross on Android Wear run button.
  <img src="https://i.stack.imgur.com/csrWR.png" alt="enter image description here">
  <img src="https://i.stack.imgur.com/NSAFS.png" alt="enter image description here"></p>
  
  <p>You might ask what the problem is? I can't find the watchface program in the emulator. All I see is just a blue first page and then when I swipe it goes to an Agenda like what you see here:
  <img src="https://i.stack.imgur.com/BXU1M.png" alt="enter image description here">
  <img src="https://i.stack.imgur.com/Ck0R3.png" alt="enter image description here"></p>
  
  <p>Gradle:</p>
  
  <pre><code>Configuration on demand is an incubating feature.
  :wear:preBuild UP-TO-DATE
  :wear:preDebugBuild UP-TO-DATE
  :wear:checkDebugManifest
  :wear:preReleaseBuild UP-TO-DATE
  :wear:prepareComAndroidSupportRecyclerviewV72200Library UP-TO-DATE
  :wear:prepareComAndroidSupportSupportV42200Library UP-TO-DATE
  :wear:prepareComGoogleAndroidGmsPlayServicesBase750Library UP-TO-DATE
  :wear:prepareComGoogleAndroidGmsPlayServicesWearable750Library UP-TO-DATE
  :wear:prepareComGoogleAndroidSupportWearable120Library UP-TO-DATE
  :wear:prepareDebugDependencies
  :wear:compileDebugAidl UP-TO-DATE
  :wear:compileDebugRenderscript UP-TO-DATE
  :wear:generateDebugBuildConfig UP-TO-DATE
  :wear:generateDebugAssets UP-TO-DATE
  :wear:mergeDebugAssets UP-TO-DATE
  :wear:generateDebugResValues UP-TO-DATE
  :wear:generateDebugResources UP-TO-DATE
  :wear:mergeDebugResources UP-TO-DATE
  :wear:processDebugManifest UP-TO-DATE
  :wear:processDebugResources UP-TO-DATE
  :wear:generateDebugSources UP-TO-DATE
  :wear:processDebugJavaRes UP-TO-DATE
  :wear:compileDebugJava UP-TO-DATE
  :wear:compileDebugNdk UP-TO-DATE
  :wear:compileDebugSources UP-TO-DATE
  :wear:preDexDebug UP-TO-DATE
  :wear:dexDebug UP-TO-DATE
  :wear:validateDebugSigning
  :wear:packageDebug UP-TO-DATE
  :wear:zipalignDebug UP-TO-DATE
  :wear:assembleDebug UP-TO-DATE
  
  BUILD SUCCESSFUL
  
  Total time: 3.701 secs
  </code></pre>
  
  <p>Here's what is in build.gradle (Module:wear)</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  
  android {
      compileSdkVersion 22
      buildToolsVersion "22.0.1"
  
      defaultConfig {
          applicationId "com.example.mona.app1"
          minSdkVersion 21
          targetSdkVersion 22
          versionCode 1
          versionName "1.0"
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  }
  
  dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
      compile 'com.google.android.support:wearable:1.2.0'
      compile 'com.google.android.gms:play-services-wearable:7.5.0'
  }
  </code></pre>