The steps for me for Wear 1.x (for which wear module must be inside handheld module) were the following.
- Ensure both handheld and wearable modules had same permissions and package names in their manifest files.
- Ensure both modules had the same version number in their build.gradle files.
- Ensure build.gradle of handheld module includes ‘wearApp project(‘:wearable’)’ within dependencies clause.
- Click Build, Generate Signed APK and select handheld module. Enter release key (see separate post).
- Publish handheld apk, which should contain wearable apk.
To publish Wear 2.0 wear app (which can be independent or semi-independent of handheld app) I did the following.
- Ensured all references to API level in wear modules build file were to 25, followed by sync and any prompted updates to support files.
- Add standalone meta data entry to wear manifest (see below).
- Click Build, Generate Signed APK and select wear module. Enter release key (see separate post).
- Publish wear apk. [This is currently being tested. Will update soon]
<meta-data android:name="com.google.android.wearable.standalone" android:value="true" />