简体   繁体   English

使用telnet会使android模拟器崩溃

[英]using telnet crashes android emulator

This question has been asked before , but none of the answers have worked for me. 之前曾有人问过这个问题,但没有一个答案对我有用。

I am attempting to use telnet to manipulate the state of an android virtual device, but every time i attempt any command other than help , the emulator crashes. 我试图使用telnet来操纵android虚拟设备的状态,但是每次我尝试使用除help以外的任何命令时,模拟器都会崩溃。 This is happening both in windows and linux. 这在Windows和Linux中都在发生。 I have to assume its a problem with the emulator but I have no idea how to solve it. 我必须假设它是模拟器的问题,但我不知道如何解决。

I had the same issue and it was solved using the following steps: 我遇到了同样的问题,可以通过以下步骤解决:

1- Close the emulator if it is opened 1-关闭模拟器(如果已打开)

2- Navigate to the following path: 2-导航到以下路径:

C:\\Users{yourUserName}.android\\avd{yourAVDName}.avd C:\\ Users {yourUserName} .android \\ avd {yourAVDName} .avd

3- Change the format of the Config.ini file instead of having it as a single line, it should look like this: 3-更改Config.ini文件的格式,而不是将其作为一行,它应如下所示:

hw.ramSize=343 hw.ramSize = 343

hw.device.manufacturer=Google hw.device.manufacturer = Google

hw.sdCard=yes hw.sdCard =是

hw.mainKeys=yes hw.mainKeys =是

hw.accelerometer=yes hw.accelerometer =是

skin.name=480x800 skin.name = 480x800

4- Make sure that the line hw.battery=YES 4-确保行hw.battery = YES

5- Start the emulator again 5-再次启动模拟器

Telnet commands should now work fine. Telnet命令现在应该可以正常工作。

You can check the following posts: 您可以检查以下帖子:

Android Emulator got discharged completely - running telnet power command crashing the Emulator Android模拟器完全放电-运行telnet power命令使模拟器崩溃

and

Segmentation Fault trying to set battery level in android emulator 分段错误尝试在Android仿真器中设置电池电量

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM