Android模拟器得到了完全放电 - 运行Telnet命令电源崩溃模拟器模拟器、得到了、命令、电源

2023-09-07 15:41:27 作者:残缺的温柔

晚上好朋友,我到Android新手。我的问题是,当过我开始仿真器,它显示电池作为nill和消息为连接到充电器。虽然我在网上搜索此,我碰到使用Telnet命令。我用下面的命令 -

 远程登录本地主机5554电源容量100 

这是崩溃我的应用程序。不仅功率命令,但也有其他命令,除了帮助。我试图改变的权力,99,70,20,等等,没有在输出做出区别。

对于这一点,我已经试过在鉴于这种文章的建议。

在this题。

此问题可能看起来像已经存在的问题重复。但是,我已经尝试了所有这些解决方案,

重新安装月食重新安装Android的SDK 重新安装AVD管理重建现有的AVD

我使用英特尔凌动(x86)的模拟器。我们的目标是Android的4.3 API级别18

我也跟着指示和建议给予了here像改变config.ini文件的 hw.battery 选项 .android \\ AVD \\ 文件夹中。

解决方案

解决方案是将 hw.battery = YES 中的AVD config.ini文件中描述这里:

http://stackoverflow.com/a/17467342/2232812

    

转到您的Andr​​oid虚拟设备文件夹中。在Windows 7上它的这个文件夹,例如:结果   C:\\用户\\ {您的用户名} \\机器人\\ AVD \\ {} yourAVDName .avd

  

打开的config.ini 文件

  设置电池选项设置为yes: hw.battery = YES    重新启动您的虚拟设备并快乐: - )  命令行使用telnet连接Android模拟器并向其发送短信

Good evening friends, I am a newbie to android. My problem is, when ever I started emulator, it is showing battery as nill and the message as connect to charger. While I am searching for this over internet, I came across using the Telnet commands. I have used the following commands -

telnet localhost 5554
power capacity 100

This is crashing my application. Not only the power command, but also other commands except help. I have tried changing the power to 99, 70, 20, etc., nothing made difference in the output.

For this, I have tried the suggestion given in this article.

I also have tried solution given in this question.

This question might look as a duplicate of already existing questions. But, I have tried all those solutions,

I have

reinstalled eclipse reinstalled android-sdk reinstalled avd manager recreated existing AVD

I am using Intel Atom (x86) Emulator. The target is Android 4.3 with API level 18.

I have also followed the instructions and suggestions given over here like changing the hw.battery option in the config.ini file in .android\avd\ folder.

解决方案

The solution is to set the hw.battery=yes in the AVD config.ini file as described here:

http://stackoverflow.com/a/17467342/2232812

Go to your Android Virtual Devices folder. On Windows 7 it's this folder for example: C:\Users\{yourUserName}\.android\avd\{yourAVDName}.avd

Open the config.ini file

Set the battery option to yes: hw.battery=yes Restart your Virtual Device and be happy :-)