Appium学习笔记3_Genymotion模拟器安装

如果你已经配置好了安卓的运行环境,也配置好了自带的模拟器AVD,而且也launch了你的安卓模拟器,那么我相信你是不再愿意launch安卓模拟器第二次了,因为实在是太卡了(当然如果你电脑的配置够高,你就可以无视了)。

有没有什么解决方法呢?回答是肯定的,比如用你的真机,但是安卓的版本实在是太多,你不可能买到市场上所有流行的机器吧。所以模拟器的使用是必然的, 好在Genymotion的存在,相对AVD模拟器来说Genymotion好的太多了。

 

Genymotion官网:https://www.genymotion.com/#!/

玩了一下这个模拟器,在认识上觉得Genymotion就是依赖于VirtualBox运行的(虚拟机,相当于现在用的比较流行的就是VMWare WorkStations),可以理解为就是一台运行在VirtualBox上的虚拟机。

进入下载页:https://www.genymotion.com/#!/download

可以选择下载Genymotion或者选择下载Genymotion+VirtualBox整合版本:(下载的时候需要注册一个账户,记住这个账户,在后面这个账户是需要用到的。)

 

根据自己的需要下载对应的版本,前面我也说过了,Genymotion是基于VirtualBox来运行的,所以至始至终你都需要下载VirtualBox,并进行安装,所以最好还是下载整合版比较方便。

下载完以后,就是安装,下一步然后继续下一步,直到安装成功,中间步骤忽略。

接下来就是启动genymotion,选择"Add"添加一个你需要的模拟器,这个时候需要登陆(用之前注册的账户),然后选择对应的模拟器进行安装,根据网速而定来决定你的下载速度了。

下载完成以后,进入Setting下面的ADB界面,然后设置你Android SDK的配置路径。比如我的"E:\Appium\android-sdk-windows\android-sdk-windows",设置完后退出。

接下来你可以运行你刚刚下载的模拟器,你会感觉从AVD自带模拟器中释放出来了。这才是体验。

 

Eclipse安装Genymotion插件:

这一步实在是太坑了,在这里折腾了半天时间。根据官网上的介绍(两种方法,一种Eclipse自动更新,第二种就是手动下载jar包)。

 

 

第一步始终获取不到资源,最终放弃采用第二种方法(坑爹的地方出现了,大天朝的网络大家都懂,但是尼玛官方文档这块是不是也没有介绍清楚啊),

根据第二种方法,去下载页(如下图所示):https://www.genymotion.com/#!/download 

 

 下载了最新的jar包(com.genymobile.genymotion.ide.eclipse.plugin_1.0.5.201507301435.jar),然后将这个jar文件放到"E:\eclipse\plugins"该路径下,接下来就是不停的打开Eclipse然后关闭Eclipse,结果大家肯定猜到了Genymotion的图标在Eclipse tool bar上出现不了。反正是各种折腾。

最后发现是少Jar文件需要放两个jar文件到"E:\eclipse\plugins"该路径下

com.genymobile.genymotion.ide.eclipse.plugin_1.0.4.201503031034.jar

com.genymobile.genymotion.lib_1.0.4.201503031034.jar

第二个关于lib的jar包没有找到在哪下载的,而且这两个jar包的版本日期必须是一样的,放到对应的路径下,小图标就出来了。

 

附上两个jar文件的下载地址:

com.genymobile.genymotion.ide.eclipse.plugin_1.0.4.201503031034.jar: http://pan.baidu.com/s/1hXhaY

com.genymobile.genymotion.lib_1.0.4.201503031034.jar:http://pan.baidu.com/s/1qWuvU6g

 

小图标:

 

 

 

模拟器起来以后:

 

 

下面是官网对于插件安装的方法介绍:

Installing the plugin

You can install Genymotion plugin for Eclipse in one of the following ways:

  • Update Site method (recommended);
  • Manual method.

Update Site method (recommended)

  • Start Eclipse.
  • Go to Help/Install New Software menu and click Add.
  • Fill in the fields with the following values and click OK.
    • Name: Genymotion
    • Location: http://plugins.genymotion.com/eclipse
  • Expand Genymobile.
  • Click Select all and Next.
  • Click Next.
  • Read and accept the license terms.
  • Click Finish.
    A security warning indicates that the plugin is not signed; click OK.
  • Click Yes to restart Eclipse.

The Genymotion plugin button  is displayed in the toolbar.

Manual method

  • Ensure Eclipse is closed.
  • Download the plugin from the Genymotion download page.
  • Follow the steps corresponding to your operating system:
    • Windows
      If you have administrator rights, put the 
      .jararchive in the Pluginsdirectory of the Eclipse installation folder.
      Without administrator rights, put the 
      .jararchive in the Pluginsdirectory of the Local Settings\Eclipse folder.
    • Mac OS X
      With administrator rights, put the 
      .jararchive in the Plugins directory of the Eclipse installation folder.
    • Linux
      If you have administrator rights, put the 
      .jararchive in the Plugins directory of the Eclipse installation folder.
      Without administrator rights, put the 
      .jararchive in the Plugins directory of the /home/<user>/Eclipse folder.

转载于:https://www.cnblogs.com/taoSir/p/4816395.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值