在模拟器上调试 Android 磨损Debug Android Wear on an Emulator

06/21/2018

本文内容

这些文章介绍了如何在模拟器上调试 Xamarin 应用程序应用程序。These articles explain how to debug a Xamarin.Android Wear application on an emulator.

调试仿真程序的磨损概述Debug Wear on Emulator Overview

开发 Android 应用程序需要在物理硬件上运行应用程序,或者在使用模拟器或模拟器的情况下运行应用程序。Developing Android Wear applications requires running the application, either on physical hardware or using an emulator or simulator. 使用硬件是最好的方法,但并不总是最实用的方法。Using hardware is the best approach, but not always the most practical. 在许多情况下,如下面所述,使用模拟器来模拟/模拟 Android 磨损硬件可以更简单、更经济高效。In many cases, it can be simpler and more cost effective to simulate/emulate Android Wear hardware using an emulator as described below. 如果你尚不熟悉部署和运行 Android 应用程序的过程,请参阅Hello,磨损。If you are not yet familiar with the process of deploying and running Android Wear apps, see Hello, Wear.

配置 Android EmulatorConfigure the Android Emulator

若要在仿真程序上运行应用程序,必须安装 Android SDK Android Emulator 并对其进行配置以进行 Android 磨损。To run your Wear app on an emulator, you must install the Android SDK Android Emulator and configure it for Android Wear. 有关 Android SDK 模拟器的总体安装和配置信息,请参阅Android Emulator 安装程序。For overall Android SDK Emulator installation and configuration information, see Android Emulator Setup.

创建磨损虚拟设备时,请选择 Android 磨损设备配置文件(例如Android 磨损方形)。When you create a Wear virtual device, select an Android Wear device profile (such as Android Wear Square). 为了提高性能,请使用以下示例中所示的磨损x86 CPU/ABI:For improved performance, use the Wear x86 CPU/ABI as seen in this example:

启动磨损虚拟设备Launch The Wear Virtual Device

创建 Android 磨损虚拟设备后,你可以在开始调试之前从 IDE 中的 "设备" 下拉菜单中选择它。After you have created an Android Wear virtual device, you can choose it from the device pull-down menu in the IDE before you start debugging. 如果设备下拉菜单中的虚拟设备不可用,请验证你的项目是否为 Android 应用程序项目(不是 Android应用程序项目)以及其目标 api 级别是否设置为与虚拟设备相同的 api 级别。If your virtual device is not available in the device pull-down, verify that your project is an Android Wear app project (not an Android app project) and that its target API level is set to the same API level as the virtual device. 例如:For example:

Android 仿真程序启动后,Xamarin 会将此应用程序部署到模拟器。After the Android emulator starts, Xamarin.Android will deploy the Wear app to the emulator. 仿真器会使用配置的虚拟设备映像运行此应用。The emulator runs the app with the configured virtual device image.

如果你首先看到此(或另一个插播式屏幕),请不要惊讶。Don't be surprised if you see this (or another interstitial screen) at first. 监视模拟器可能需要一段时间才能启动:The watch emulator can take a while to start up:

可以一直运行仿真器;无需关闭仿真器并在每次运行应用时重启。The emulator may be left running; it is not necessary to shut it down and restart it each time the app is run.

总结Summary

本指南介绍了如何配置用于磨损开发的 Android Emulator,并启动了用于调试的磨损虚拟设备。This guide explained how to configure the Android Emulator for Wear development and launch a Wear virtual device for debugging.

android调试更换模拟器,在模拟器上调试 Android 磨损相关推荐

  1. pc上android模拟器,最好的Android模拟器在PC上玩Android游戏

    Android手机和平板电脑上有数百款真正有趣的游戏,其中许多游戏在键盘和鼠标上运行的效果和在触摸屏上运行的效果一样好.不过,它们中有太多只在移动设备上使用,而在PC上无法使用.值得庆幸的是,由于仿真 ...

  2. 如何用genymotion运行android,使用Genymotion Android模拟器在桌面上运行Android | MOS86

    我们在MTE中最受欢迎的一个帖子是运行Android 4的完整指南.3在Virtualbox中.显然,很多人都热衷于在桌面上运行Android,可以让您安装应用程序,并使其像手机一样运行.使用Geny ...

  3. Leetcode怎么调试java代码,在Clion上调试LeetCode代码

    在Clion上调试LeetCode代码 在leetcode上做题调试起来总有些不方便,所以查阅了一些资料后,按以下配置,自我感觉效率还行,分享给大家.祝大家刷题愉快.并附上自己整理的leetcode4 ...

  4. android驱动之旅-在Ubuntu上为Android系统编写Linux内核驱动程序(3)

    Android的硬件抽象层,简单来说,就是对Linux内核驱动程序的封装,向上提供接口,屏蔽低层的实现细节.也就是说,把对硬件的支持分成了两层,一层放在用户空间(User Space),一层放在内核空 ...

  5. android x86小白安装教程,电脑上安装Android 10小白教程,大屏Android用起来

    Bliss OS是一个基于 Android-x86 项目的开源操作系统,它能让你PC或笔记本电脑上安装Android系统,目前已更新到基于 Android 10 的 Bliss OS 12 版本,不过 ...

  6. Android Studio在vivo Y93手机上调试apk出现解析包出错

    在Android studio开发过程中出现解析包时出现问题,第一次用vivo y93 Android 8.1的手机,找了好久的解决办法 解决方法: 勾选去掉就解决了

  7. mac android屏幕演示,如何在Mac上录制Android设备的屏幕 | MOS86

    记录和捕获Android设备的屏幕比以前更容易.您现在可以使用多种工具来帮助您记录设备从使用ADB记录您的屏幕到使用AirDroid无线捕获屏幕截图,没有任何工具完成工作.其中一个很棒的实用程序是An ...

  8. android广播内容显示在屏幕上,在Android本机来电屏幕上弹出窗口,例如真正的来电者Android应用...

    我也在努力(在这里理解你可能是错误的).您想要实现的是在Android 4.2(Jelly Bean)中显示该活动.我只是延迟显示活动.我在其他类中使用过PhoneStateListener.我可以在 ...

  9. 智能android电视更换播放器,GitHub - qfwc258/TvPlayer: android智能电视播放器,可以播放各电视台节目,播放基于ijkplayer的实现。...

    TvPlayer 1,android智能电视播放器,可以播放各电视台节目,播放基于ijkplayer的实现 2,测试的源地址可能失效,如需测试可以自己更换播放源.HttpUtils.getOfflin ...

  10. chrome运行 Android,告诉你如何在Chrome上运行Android应用!

    最近在谷歌百度贴吧发现的这个玩意,很好玩的样子.就来试试了.开始弄好好长时间,那些乱七八糟的教程完全不对. 今天给朋友介绍一下. 说明:此教程仅适用于 Windows 平台上的 Chrome . 准备 ...

最新文章

  1. CSS--使用display:inline-block;存在间隙问题解决
  2. C++实现输入两个字符串,从第一字符串中删除第二个字符串中所有的字符
  3. C++语言程序设计视频教程_清华大学_郑莉(基础篇+进阶篇)
  4. Spring Batch 专题
  5. mysql的原理图解_MySQL排序工作原理
  6. servlet增删改查实例_SpringMVC4+MyBatis3+SQLServer 2014 整合(包括增删改查分页)
  7. 学习 Linux_01: 引导程序
  8. Jerry 的 SAP 技术交流群里讨论的技术问题都会同步到这个帖子里
  9. Git和SVN的区别,Git的使用方法大全
  10. CFileDialog获取文件与文件夹路径
  11. mysql中 routine
  12. 创业需要的学习能力不是读书考试做题也不是所谓的思维格局
  13. C++ container member map
  14. CSDN积分获取规则
  15. linux proftpd 用户,[原]把boblog博客的用户导入proftpd用户认证数据库
  16. 2020年下系统集成项目管理工程师真题基础知识+解析1/3
  17. 施乐700彩机服务器维修,施乐700DCP彩色数码复印机维修手册:700dcp_sc_ver1.1_chap05(208页)-原创力文档...
  18. C语言编程圆周运动运行结果,湘潭大学《C语言程序设计Ⅱ》课程考试试卷.doc
  19. 逆向分析-010Editor
  20. 10 分钟搞定 Vim 编辑器常用命令!

热门文章

  1. python 基础命令-Python unittest第一篇:基础入门+命令行编译
  2. python代码示例下载-python爬取音频下载的示例代码
  3. python基本使用-Python 基本用法
  4. python工程师薪资坑吗-Python中反人类直觉的特性,你踩过坑吗?
  5. python适合做后端开发吗-Python后端开发是什么职位?
  6. python软件安装步骤-Linux中Python 环境软件包安装步骤
  7. python安装numpy-NumPy 安装
  8. pythonista安卓版下载-pythonista 3ios
  9. python图片通道分离
  10. mybatis中ResultSetHandler的设计与实现