title: Can't install my app on wear
body: <p>I tried to add a wear module to my existing app, tried a lot of solutions, but can't figure out why my app is not being installed on my watch.</p>
  
  <p>What I tried :</p>
  
  <p>First, Manual packaging with my app : <a href="https://developer.android.com/training/wearables/apps/packaging.html" rel="noreferrer">https://developer.android.com/training/wearables/apps/packaging.html</a></p>
  
  <p>But I quickly decided not to go through this.</p>
  
  <p>Then I decided to go to gradle include, so to the build.gradle of app, I added the following to the end of dependencies :</p>
  
  <pre><code>debugWearApp project(path:':wear', configuration: 'flavor1Debug')
  releaseWearApp project(path:':wear', configuration: 'flavor1Release')
  </code></pre>
  
  <p>To the build.gradle of wear, I added the following to the beginning of dependencies :</p>
  
  <pre><code>wearApp project(':wear')
  </code></pre>
  
  <p>Then, in <code>android{}</code> section of wear build.gradle, just after <code>buildToolsVersion</code>, I added the following :</p>
  
  <pre><code>publishNonDefault true
  </code></pre>
  
  <p>What I have seen :</p>
  
  <ul>
  <li>No problem to install the wear app to the wear using bluetooth debug of the wear</li>
  </ul>
  
  <p>Then, when I install a generate a release version of my app, I can see in raw, that it has been added a file android_wear_micro_apk.apk to res/raw which is my watch app.
  I also saw a file android_wear_micro_apk.xml in res/xml with, from what I guess between hexa codes, the description of wear app.</p>
  
  <p>Then I compare signatures :</p>
  
  <pre><code>keytool -list -printcert -jarfile mobile_app.apk
  keytool -list -printcert -jarfile wear_app.apk
  </code></pre>
  
  <p>Using the wear app generated in res/raw. They exactly have the same signature. Then I compared :</p>
  
  <pre><code>aapt dump badging mobile_app.apk
  aapt dump badging wear_app.apk
  </code></pre>
  
  <p>They have exact same package names and version codes and names.</p>
  
  <p>So, from that :</p>
  
  <ul>
  <li>Apk of wear is correctly added</li>
  <li>Apk of wear is working if installed on the wear using adb and bluetooth debug</li>
  <li>Both apk have same version code, version name, and package name</li>
  <li>Wear is not requiring any permission</li>
  <li>Phone is requesting following permissions
  
  <ul>
  <li>android.permission.ACCESS_NETWORK_STATE</li>
  <li>android.permission.INTERNET</li>
  <li>com.android.vending.BILLING</li>
  <li>com.google.android.c2dm.permission.RECEIVE</li>
  <li>android.permission.VIBRATE</li>
  <li>android.permission.WRITE_EXTERNAL_STORAGE</li>
  <li>android.permission.BLUETOOTH</li>
  <li>android.permission.BLUETOOTH_ADMIN</li>
  <li>com.samsung.accessory.permission.ACCESSORY_FRAMEWORK</li>
  <li>com.samsung.android.providers.context.permission.WRITE_USE_APP_FEATURE_SURVEY</li>
  <li>com.samsung.WATCH_APP_TYPE.Companion</li>
  <li>com.samsung.wmanager.ENABLE_NOTIFICATION</li>
  </ul></li>
  </ul>
  
  <p>I'm really wondering what I could have forgotten.</p>
  
  <p>Thanks for any help</p>