如何将Genymotion与App Inventor 2一起使用? [英] How can I use Genymotion with App Inventor 2?

查看:138
本文介绍了如何将Genymotion与App Inventor 2一起使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以将 App Inventor 2 连接到

Is there any way to connect App Inventor 2 to a Genymotion instance?

推荐答案

步骤1:安装Genymotion并创建Android虚拟设备(AVD)

  1. 点击此处下载Genymotion(确保您选择了免费供个人使用"版本)
  2. 转到Genymotion的用户指南并遵循安装Genymotion部分,然后向下滚动到入门"部分以设置Android虚拟设备(AVD).您可以忽略所有其他页面.
  1. Click here and create an account.
  2. Download Genymotion here (make sure you choose the Free-For-Personal-Use version)
  3. Go to the Genymotion's user guide and follow the Installing Genymotion Section and then scroll down to the Getting Started section to set up an Android Virtual Device (AVD). You can ignore all the other pages.

第2步:将APK文件部署到AVD中

  1. 在Genymotion中启动AVD:

  1. 返回MIT App Inventor,然后将您的项目下载为APK文件.

  1. 将APK文件拖放到正在运行的AVD的窗口中.您的应用程序应该启动.

步骤3:通过USB将Genymotion连接到MIT App Inventor

  1. 安装App Inventor设置软件(请参见此页面上的步骤1 ).除其他功能外,它将在您的计算机上安装aiStarter.
  2. 到目前为止,MIT App Inventor的设置使用的是较旧版本的adb,这导致MIT App Inventor看不到Genymotion的AVD.为了解决这个问题,
    • Windows:复制Genymotion软件随附的adb.exe(默认位置:C:\Program Files\Genymobile\Genymotion\tools\adb.exe),并将其粘贴到计算机上的command-for-Appinventor文件夹中安装的adb.exe(默认位置:C:\Program Files (x86)\AppInventor\commands-for-Appinventor\adb.exe).
    • Mac:Mac OS X:确保Applications/AppInventor/appinventor的命令/adb与Vbox设置中的相同(请参见下面的屏幕截图).您可以使用此adb .
  1. Install the App Inventor Setup Software (see step 1 on this page) on your computer. Amongst other things it will install aiStarter on your computer.
  2. As of now, MIT App Inventor’s setup is using an older version of the adb, which results in MIT App Inventor not seeing Genymotion's AVD. To solve this issue,
    • Windows: copy the adb.exe supplied with the Genymotion software (default location: C:\Program Files\Genymobile\Genymotion\tools\adb.exe) and paste it over the one installed in the commands-for-Appinventor folder on your computer (default location: C:\Program Files (x86)\AppInventor\commands-for-Appinventor\adb.exe).
    • Mac: Mac OS X: Make sure that Applications/AppInventor/commands-for-Appinventor/adb is the same as the one in Vbox settings (see screenshot below). You can use this adb.

  1. 要测试一切正常,请启动AVD,启动aiStarter,然后转到 http://appinventor.mit.edu/test/.您应该看到:
  1. To test that everything is working OK, start the AVD, start aiStarter, and go to http://appinventor.mit.edu/test/ . You should see:

在aiStarter中,也应该看到一些活动:

In aiStarter, there should see some activity as well:

使AVD和aiStarter保持运行状态.

Leave the AVD and aiStarter running.

  1. 下载MIT AI2伴侣应用程序( http://ai2.appinventor.mit. edu/companions/MITAI2Companion.apk )并将其拖放到正在运行的AVD中.您应该得到类似的东西:
  1. Download the MIT AI2 Companion App (http://ai2.appinventor.mit.edu/companions/MITAI2Companion.apk) and drag and drop it into the running AVD. You should get something like:

5现在您可以将App Inventor连接到Genymotion:在App Inventor中转到您的项目,单击连接">"USB":

5 Now you can connect App Inventor to Genymotion: go to your project in App Inventor, click on connect > USB:

您的应用程序应在10或20秒后出现在Genymotion中.

Your application should appear in Genymotion after 10 or 20 seconds.

这篇关于如何将Genymotion与App Inventor 2一起使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆