APP- environment to build

Windows How to install Android SDK

We all know that Android and IOS App test is divided into two kinds of clients, when we tested Android App version of the often install the Android environment, then install the Android SDK is essential, then we take a look at how to install Android SDK.
 
First, the software download:
Adt-bundle-windows-x86_64-20140321.zip you download from the network disk, here we provide a 64-bit adt, if you are a 32-bit system, please download the 32-bit adt.
Links: https://pan.baidu.com/s/1bp73Qn9 Password: 4c2i
 
Second, configure the environment variables:
They were unpacked after downloading good, put itself in a directory, open the file after decompression folder
After I found that there are the following files or folders, as shown:
eclipse: This is the ADT compressed package that comes with Eclipse, support the development of Android, does not require configuration. But now I suggest that you use Android Studio.
sdk: This is the Android SDK, we configure the environment variables configured here.
SDK Manager: to manage and update the SDK to download a manager.
 
Then we have to configure the environment variables:
ANDROID_HOME this environment variable to specify the sdk folder, for example: ANDROID_HOME = C: \ Users \ zhaowei \ Desktop \ software \ adt-bundle-windows-x86_64-20140321 \ sdk
Increase the value of the PATH environment variable as follows:
PATH=%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools;%ANDROID_HOME%\build-tools\android-4.4.2;
Third, to verify:
1, the configuration environment variables, re-open cmd, performed adb version, the representative configuration appears as shown correctly
 
How to install Genymotion simulator
App during our tests, apart from using a real machine tests, and sometimes need to use the simulator to test, then the Android SDK itself provides us with an original eco-simulator, but due to the slow start, poor performance gradually abandoned by everyone, then there are other third-party simulators, I personally prefer genymotion, today we'll talk about how to install Genymotion simulator.
First, we need to first go to the official website to register an account, the official website address: https://www.genymotion.com/ .
1. Click Sign In:

2. Click on Create an account:

3. The time required to fill Username, Email Address, Password, Company Type ( Business Type) Select Gamer / personal (or individual player), Usage Type (type of use) to select Testing (test), Country (countries) selected China, tick the I Accept at The the I Terms and Conditions , then click on Create an account:

 


4. see the following interface, tell you to your registered email send a confirmation link, you need to log-mail confirmation:

 

Receive mail press here
5. Login E-mail confirmation, see the following tips prove successful account creation:
Second, after the account is created then we will start the download, Download: https://www.genymotion.com/download/ .
1.windows系统,我们一般选择下载包含 VirtualBox的,如果你已经安装了VirtualBox也可以选择不包含VirtualBox的进行下载,Mac的需要自行安装VirtualBox,VirtualBox下载地址: https://www.virtualbox.org/wiki/Downloads
genymotion-3.0.2-vbox.exe  双击安装
2.下载好后双击就可以进行安装了。
3.安装完成后运行程序,我们会看到一个关于genymotion的介绍,点击close按钮,关闭即可:
4.接下来会让你选择一个license,我们选择Person Use(个人使用):
5.勾选下图的复选框,然后点击Accept:
6.点击Sign In:
登录进去后选择设备

点击start报错

错误提示:虚拟化设备没有连接—去开启虚拟化

虚拟机化报错

电脑重新启动—界面刚刚重启的时候一直按住F2(我得是联想电脑快捷键是F2-其他型号电脑还需要重新去查查快捷键),进入到Bios界面,然后settings-->configuration-IntelVirtualTechnology设置为[ENABLED]。问题解决~~

修改后成功运行

 

 测试连接设备—报错

这是因为adb端口被genymotion占用了,我们需要在genymotion中进行设置,点击Settings然后点击ADB,我们勾选第二个使用自己的SDK,然后配置SDk地址,

下面出现对勾说明配置正确:

验证—成功~!

 

模拟器启动后向模拟器中安装App会出现失败的情况,如图:
 genymotion现在的发布版本没有带有Genymotion-ARM-Translation.zip,需要手动添加!
首先下载该文件,下载好后直接拖进虚拟器中:进行安装

 

 
 

Guess you like

Origin www.cnblogs.com/njq666/p/10954267.html
Recommended