Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Moto 360 Deploying from Android Studio extremely slow

Trying to run a wear counterpart of an Android app directly on Moto 360, after having it connected and listed as a target device.

ADB can see it and communicates fine.

However, the deployment message is not progressing for a long time, about 10 mins.

Eventually, the app gets installed, but this makes continuous development on the device almost impossible.

Is there any way to speed up this installation? I really doubt that the Bluetooth link is that slow.

like image 826
Mcingwe Avatar asked Oct 01 '14 14:10

Mcingwe


People also ask

Why is Android Studio running so slow?

There may be many plugins in Android Studio that you are not using it. Disabling it will free up some space and reduce complex processes. To do so, Open Preferences >> Plugins and Disable the plugins you are not using.

What is the best version of Android Studio?

Android Studio 3.2 is the best way for app developers to cut into the latest Android 9 Pie release and build the new Android App bundle.

What is Debug over Bluetooth?

You can debug your wearable over Bluetooth by routing its debug output to the handheld device that's connected to your development machine.


2 Answers

Well sometimes you don't really have the option of using an emulator.

My experiences with deploying direct on the device is pretty much the same as yours.

For me, the initial deployments were quick but eventually they began to slow down after a few redeployments

What worked for me was this:

  1. Install TaskManager on the wear (https://play.google.com/store/apps/details?id=rocketstartups.weartaskmanager&hl=en)

  2. Before a deploy, open Task Manager on the wear and "close all" apps.

  3. Now deploy. I get consistent deployments within a minute.

Hope it helps

like image 92
allkenang Avatar answered Nov 16 '22 03:11

allkenang


I had the same issue and started using Emulator. Emulator is pretty fast since there is not data transfer over bluetooth.

To setup an emulator, you can use the following tutorials. http://www.binpress.com/tutorial/how-to-create-a-custom-android-wear-watch-face/120 https://developer.android.com/training/wearables/apps/creating.html

The next update of android wear is coming up with Wi-fi. With that we should be able to deploy it in Wi-fi itself.

http://androidcommunity.com/moto-360-getting-wifi-support-after-android-wear-update-20150421/

like image 39
nizam.sp Avatar answered Nov 16 '22 03:11

nizam.sp