I am trying to build a signed APK of an android wear face. Since I've been running into trouble, I'm trying to do this as a proof of concept with the default template project in Android Studio 1.2.1.1 on Mac OS X.
These are the steps I took:
- Start a new project in Android Studio
- Tick "Phone and Tablet" (Minimum API 18) and "Wear" (Minimum API 21)
- Select "No Activity" for Mobile
- Select "Watch Face" for Wear, give it a name and select the "Analog" type
- Press on Build -> Generate Signed APK
- Select to build the "mobile" module
- Create a new key store, and fill in all the information
- Select this key store with the key alias
- Select my desktop as the destination folder, set the build type to "release"
- This produces two APK files on my desktop: mobile-release.apk and wear-release.apk. I transfer the mobile-release.apk to my phone for installation.
After installation of the signed mobile-release.apk, the watch face never shows up in the Android Wear companion application, nor on the watch itself. It does show up in the list of downloaded applications in the settings though. I've tried waiting, and I've tried resyncing apps to the watch. What am I doing wrong? How do I properly build a release version of an Android Wear watch face?