Android Wear App Not Installing Through Handset

Android Wear app not installing from the mobile package

So, after multiple uninstalls and reinstalls, but without changing any code, the install is now working. Sometimes I have to "Resync applications" to see changes on the phone. The whole process seems quite clunky.

Can't install my app on wear

According to one of Google’s Android Developer Advocates, Android Wear 2.0 will require completely standalone watch and phone apps, and abandons the system used since the first version of Android Wear that automatically installs Android Wear apps based on the apps you have on your phone.
He puts it plainly in reply to another developer in the Android Wear Developers Google+ community (emphasis ours):

A Wear 2.0 user must visit the Play Store on their watch to install
apps. There is no auto-install like on Wear 1.X. Wear 2.0 apps get
full network access and can be installed completely separately from
the handheld app so the focus is much more on standalone Wear apps
than the handheld centric 1.X Wear apps.

But what about apps built solely for your watch? Well, there's a whole
store worth of apps that go beyond simple notifications and live on
the watch itself. Rather oddly, these still have to be installed
through your smartphone. For now, at least - the new Android Wear 2.0
update will include functionality for standalone apps.

Android Wear not able to install the app directly from Android Studio

I faced the same issue and it turned out that Wear Emulator need to get Play Store Services for Wear updated after being created. See "Pair a phone with the watch AVD" section here.

Once you pair your Wear Emulator, open Android Wear app > click on gear (settings) > select Wear Emulator > Select ReSync Apps

Once done, try re-running wear app from Android Studio.

Android Wear App not installed

  • Check your permissions. The Smartphone part needs to have all the permissions the Wear component has.
  • use the same package id for both apps (wear and mobile)

Wearable not installing app (Android Wear functionality criteria)

I ended up finding the solution but forgot to share:

dependencies {
wearApp project(path: ':wear', configuration: 'productionRelease')
...
}

Where 'productionRelease' = productFlavor+buildType

EDIT: gradle-plugin-3-0-0-migration

How to install WearOS companion app along with the Android phone app automatically

Since Wear OS 2.0, there's no way to fully automate this. Google went all-in on the idea of "standalone" Wear apps, and left us developers of integrated apps mostly out in the cold.

As far as I know, the only way to get both apps installed since Wear 2.0 is a process flow like the following:

  1. When the user runs your phone app, use the Capability API to check if your app is installed on a paired watch.
  2. If it's not installed, show an appropriate UI to the user telling them about the problem.
  3. And from that UI, give them an action to open the Play Store on the watch to your app's listing, using RemoteIntent.startRemoteActivity().

And you need to do something similar in your watch app, in case the user installs and runs that first.

This process is documented (with some code samples) here: https://developer.android.com/training/wearables/apps/standalone-apps#detecting-your-app



Related Topics



Leave a reply



Submit