0

我正在尝试在 android-emulator 上部署一个示例 maven 项目“helloflashlight”(https://code.google.com/p/maven-android-plugin/wiki/Samples)我的 maven 构建成功完成并且 mvn android:deploy打印以下消息:

[INFO] --- android-maven-plugin:3.7.0:deploy (default-cli) @ helloflashlight ---
[INFO] Waiting for initial device list from the Android Debug Bridge
[INFO] Found 1 devices connected with the Android Debug Bridge
[INFO] android.device parameter not set, using all attached devices
[INFO] Emulator emulator-5554_First-Nexus_unknown_sdk found.
[INFO] emulator-5554_First-Nexus_unknown_sdk :   Successfully installed C:\git\samples\helloflashlight\target\helloflashlight.apk to emulator-5554_First-Nexus_u
nknown_sdk
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS

查看 HelloFlashlight(主要活动)类,我应该能够在屏幕上看到多个按钮(如 greenButton、redButton),单击这些按钮会更改背景颜色。但是,我没有看到 nexus 模拟器屏幕有任何变化。它仍然显示充电 50%(附图)。关于什么可能是错误的任何线索?

在此处输入图像描述

4

1 回答 1

1

那是模拟器的锁屏。与任何其他 Android 设备一样,您可以单击并将锁定图标拖动到一侧以解锁设备。如果应用程序当前不在屏幕上,您将单击“所有应用程序”按钮,其中应该有您的应用程序的名称,然后单击它以启动它。

于 2013-10-23T22:04:05.643 回答