如何在App Inventor 2中使用Genymotion?

时间:2015-01-16 02:37:22

标签: genymotion app-inventor

有没有办法将App Inventor 2连接到Genymotion个实例?

2 个答案:

答案 0 :(得分:4)

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

  1. 点击here并创建一个帐户。
  2. 下载Genymotion here(确保选择Free-For-Personal-Use版本)
  3. 转到Genymotion' user guide并按照安装Genymotion部分进行操作,然后向下滚动到“入门”部分以设置Android虚拟设备(AVD)。您可以忽略所有其他页面。
  4. 第2步:将APK文件部署到AVD

    1. 在Genymotion中开始AVD:
    2. enter image description here

      1. 返回MIT App Inventor并将您的项目下载为APK文件。
      2. enter image description here

        1. 将APK文件拖放到正在运行的AVD的窗口中。您的应用程序应该启动。
        2. 步骤3:通过USB将Genymotion连接到MIT App Inventor

          1. 在计算机上安装App Inventor设置软件(请参阅此page上的步骤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文件夹中安装的文件上(默认位置:{{1 }})。
            • Mac:Mac OS X:确保Applications / AppInventor / command-for-Appinventor / adb与Vbox设置中的相同(请参见下面的屏幕截图)。您可以使用this adb
          3. enter image description here

            1. 要测试一切正常,请启动AVD,启动aiStarter,然后转到http://appinventor.mit.edu/test/。你应该看到:
            2. enter image description here

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

              enter image description here

              让AVD和aiStarter继续运行。

              1. 下载MIT AI2 Companion App(http://ai2.appinventor.mit.edu/companions/MITAI2Companion.apk)并将其拖放到正在运行的AVD中。你应该得到类似的东西:
              2. enter image description here

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

                enter image description here

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

答案 1 :(得分:0)

Franck的指南很好,但只是想为可能会遇到与第2步结束时同样的问题的人提供更多信息

对我而言,拖放操作不可用 https://docs.genymotion.com/latest/Content/03_Virtual_Devices/Interacting_with_virtual_devices/Drag_and_drop.htm

https://docs.genymotion.com/latest/Content/02_Application/Configuring_Genymotion/ADB.htm#adb

所以我必须设置第3部分的MAC区域中提到的ADB(我在PC上)

我安装了Android Studio,因为SDK下载只是给了我一个tools文件夹,而在Genymotion中并没有将其识别为有效文件夹,因此我将“使用自定义Android SDK工具”定向到C:\ Users \ bob \ AppData \ Local \ Android \ SDK

这使我可以将常规apk文件拖放到我的Genymotion android模拟客户端中,但不允许同伴安装并提到“ ARM”问题,可通过遵循本指南解决该问题

https://pentester.land/tips-n-tricks/2018/10/19/installing-arm-android-apps-on-genymotion-devices.html

然后我刚刚从步骤3.3开始,一切都很好。

相关问题