我正在尝试部署到android仿真器上,一个样例maven项目"helloflashlight“( https://code.google.com/p/maven-android-plugin/wiki/Samples)我的maven构建成功完成,mvn android:deploy prints如下消息:
[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 (main-activity)类,我应该能够在屏幕上看到多个按钮(如greenButton、redButton),单击这些按钮可以更改背景颜色。然而,我看不到nexus模拟器屏幕有任何变化。它仍然显示正在充电50%(附图)。有什么可能是错误的线索吗?

发布于 2013-10-24 06:04:06
这是模拟器的锁屏。与任何其他Android设备一样,您可以单击锁定图标并将其拖动到一侧以解锁设备。如果应用程序当前不在屏幕上,您可以单击所有应用程序按钮,里面应该有您的应用程序的名称,然后单击它以启动它。
https://stackoverflow.com/questions/19549367
复制相似问题