简体   繁体   English

MIT App Inventor 2:模拟器不启动伴侣

[英]MIT App Inventor 2: emulator doesn't launch companion

When I run aiStarter.exe as administrator, and the click on connect to the emulator in http://ai2.appinventor.mit.edu , then the emulator starts, the black screen with android is displayed and after a couple of seconds I get the android home screen. 当我以管理员身份运行aiStarter.exe ,然后单击http://ai2.appinventor.mit.edu上的连接到模拟器,然后模拟器启动,显示带有android的黑屏,几秒钟后我得到android主屏幕。

Then every couple of seconds, a line "127.0.0.1 - date/hour/ "GET/echeck/..." is added in aiStarter.exe , and on http://ai2.appinventor.mit.edu the message asking me to wait a minute or two while it's starting emulator remains. I have waited for something to happen at this point for 30 minutes, but nothing changes. 然后每隔几秒,在aiStarter.exe添加一行“127.0.0.1 - date / hour /”GET / echeck / ...“,在http://ai2.appinventor.mit.edu上添加一条消息,询问我在它启动模拟器的情况下等待一两分钟。我已经等了30分钟就发生了什么,但没有任何变化。
在此输入图像描述

If I understood it well, the companion should be automatically launched and then I should be asked if I when to update it. 如果我理解得很好,同伴应该自动启动,然后我会被问到我何时更新它。 But this never happens, it is as if emulator get stuck just before companion get launched, or App Inventor never recognizes that emulator has started. 但这种情况从未发生过,就好像模拟器在伴侣启动之前就卡住了,或者App Inventor从未意识到模拟器已经启动。

There is a simple fix to that bug: 这个bug有一个简单的解决方法:

once your emulator is loaded (just wait until you see that: pct1), don't close anything, just open Windows Task Manager ( Ctrl + Shift + Esc or Ctrl + Shift + Del -> Task Manager ) in the process kill the adb.exe ( while the emulator is working ) cf. 一旦你的模拟器被加载(只要等到你看到:pct1),不要关闭任何东西,只需打开Windows任务管理器( Ctrl + Shift + EscCtrl + Shift + Del - > Task Manager ),在此过程中杀死adb .exe( 模拟器工作时 )cf. pct2. PCT2。 Don't do anything else, wait for few second and you will see a new popup to this site saying that it has detected the emulator. 不要做别的,等待第二次少,你会看到一个新的弹出窗口,让这个网站说,它已检测模拟器。 Repeat that each time the emulator stuck. 每次模拟器卡住时重复此操作。

pct1: PCT1:

在此输入图像描述

pct2: PCT2:

在此输入图像描述

This seems to force adb to listen on the port 8001 这似乎迫使adb在端口8001上侦听

EDIT1 an other way to kill and restart adb.exe: EDIT1杀死并重启adb.exe的另一种方法:

List item: 项目清单:

  1. put your UAC (in start menu) at the lower level 将您的UAC(在开始菜单中)放在较低级别
  2. launch your emulator, when it's ready (SD card prepared) do the following 启动您的模拟器,当它准备就绪(准备好SD卡)时,请执行以下操作
  3. go in C:\\Program Files (x86)\\AppInventor\\commands-for-appinventor right click new and "text" and rename this file run.bat (to change .txt in .bat) 进入C:\\Program Files (x86)\\AppInventor\\commands-for-appinventor右键单击new和“text”并重命名此文件run.bat (更改.bat中的.txt)
  4. right click to edit the file with notepad 右键单击以使用记事本编辑文件
  5. write just: CMD 只写: CMD
  6. save and close 保存并关闭
  7. now double click that run.bat file 现在双击该run.bat文件
  8. write: adb kill-server 写: adb kill-server
    (press enter and wait) (按回车键等)
  9. write: start-server 写: start-server
    (your emulator should now connect) (您的模拟器现在应该连接)

Edit2: Genymotion works much faster with app inventor 2. Edit2:Genymotion与app发明者2的工作速度要快得多。

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

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