段错误试图设置在Android模拟器电池电量 [英] Segmentation Fault trying to set battery level in android emulator
问题描述
我使用Ubuntu的Android的SDK工具。我已经创建了一个使用API-17 Nexus One的虚拟设备。我运行这个仿真器连接到端口5554。
I am using Android SDK tools on Ubuntu. I have created a Nexus One Virtual Device that uses API-17. I run this emulator which attaches to port 5554.
在此,我连接到这个端口使用telnet,并尝试设置功率电平:
After this, I connect to this port using telnet, and try to set power level:
power capacity 40
但是,当我这样做,我得到的分割和仿真器就会被杀死。此外,当我转到设置>电池在模拟器,它显示电池状态不可用和电池为0%。
But, when I do this, I get segmentation and emulator gets killed. Also, when I goto Settings > Battery in emulator, it shows "Battery Status Not Available" and battery is 0%.
所有其它命令除电源相关的那些工作。我该怎么办?
All other commands work, except the power related ones. What should I do?
推荐答案
我有同样的问题,并幸运地找到了一个解决方案。
I just had the same problem and luckily found a solution.
-
转到您的Android虚拟设备文件夹。在Windows 7中的这个文件夹,例如:
Go to your Android Virtual Devices folder. On Windows 7 it's this folder for example:
C:\用户\ {yourUserName} \机器人\ AVD \ {yourAVDName} .avd
打开的config.ini 文件
这已经提升为问题了,但我不知道为什么他们不解决它呢。
It has been raised as an issue already, but I'm not sure why they didn't fix it yet.
这篇关于段错误试图设置在Android模拟器电池电量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!