Deploying Mobile and Wear at the same time

一个人想着一个人 提交于 2019-12-10 13:59:12

问题


Is there a way to compile and deploy both the mobile and wear app at the same time from Android Studio?

I find myself making changes to both parts and then I need to wait for one to finish before I can deploy the next.


回答1:


If you have the default configurations for project names on Android Studio. You should have "mobile" and "wear" options in the launch combo.

  1. Click on the arrow, choose "Edit Configurations..."
  2. Select the "wear" application on the left list
  3. On the right side, scroll down to "Before Launch"
  4. Click on the green plus sign
  5. Choose "Run another configuration"
  6. Pick "mobile"
  7. Use the arrows to make "mobile" first
  8. Be sure to rebuild you project (FUll clean and build)
  9. When you have "wear" selected, click on the green arrow to launch and it should launch both application in sequence with just one click.

I think that's the best we can do for now.



来源:https://stackoverflow.com/questions/25075534/deploying-mobile-and-wear-at-the-same-time

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!