当前位置:网站首页>Appium automation test foundation - mobile end test environment construction (II)
Appium automation test foundation - mobile end test environment construction (II)
2022-06-26 10:08:00 【Test - Eight Precepts】
( 3、 ... and )Android_SDK install
Android SDK refer to Android Exclusive software development kit .Android SDK Is a free professional programming language , Allows you to create Android Applications . from Google For which Android platform-developed Android SDK Is a convenient program for mobile application developers , It contains Android The programming language begins to build all the content needed for the application , And a complete functional device simulator , So that you can test when you finish the test .
Android SDK It provides mobile software developers with the opportunity to play on the new platform . It contains everything you need to start building applications in this programming language , And a complete functional device simulator , So that you can test when you finish the test .
1、Android-sdk download
Download address :http://www.androiddevtools.cn/
Go to the download page and click Android SDK Tools --> SDK Tools It will jump to Android-sdk Download location , And then according to our own system , Just download it on demand .

2、Android-sdk Use
(1) decompression Android SDK Compressed package
decompression android-sdk_r24.4.1-windows.zip, When the unzipped Directory , Put it in your own designated position .
Remember the location of this directory , And there should be no Chinese in the catalog .

Android SDK The directory structure of is as follows :

The description of the directory structure can be viewed csdn Bloggers are : Software testing automation test article ( in the future )
(2)Android API download Android SDK After decompressing , We need to download Android API.API Are some predefined functions , By calling these functions , It enables the program to use the hardware or software of the device itself .
open Android-sdk-windows Folder , double-click SDK manager.exe file , We need to install Tools、Platform-tools、Build-tools、API Etc . In the installation API when , According to the simulator or real machine to be tested Android On the version , For example, the real machine used is Android7.1.1 edition , be Android SDK To download Android7.1.1 Version of API Can only be .

Need basis Android7.1.1 Corresponding API Level downloads correspond to Android SDK Build-tools edition .

Finally, we click on... In the lower right corner Install 1 package... perhaps Delete packages... Install or uninstall related components .
We click Install 1 package... Install the selected components .

Check Accept License And then click Install Installation .

A version of Android API Probably need 20 individual G Left and right space , It takes patience .
explain :
- SDK Manager It's just one. Android Software development kit Manager , It's like a bridge , Connect local and server , Download Android development tools from the server to the local .
- SDK Platform The next latest one will do , It can be downward compatible .
- Android Support Respository Android compatibility Library , Must install .
Below SDK Manager Illustration , That's a good summary .

(3) Configure domestic image download Android API
Because the download of foreign resources is sometimes slow , At this time, domestic image resources can be configured .
In the pop-up Android SDk Manager⻚⾯, Click on Tools , Drop down the box and click Options...

The image address list can be used by itself ⽹ Find the latest on .
3、 To configure Android-sdk environment variable
Type at a command prompt adb The order will appear adb Not an internal or external command .

There are two solutions :
(1) To configure Android sdk Environment variables of .
(2) Go straight into Android sdk In the directory platform-tools Execute the command in the directory .
To configure Android-sdk environment variable , First, make sure AndroidSDK The related components have been downloaded . And then the same Java The configuration of the environment variables for is roughly the same .
- (1) Enter the system environment variable configuration interface .
My computer --> Right click --> attribute , Then select advanced system settings --> environment variable . - (2) Create a new... In the system variable ANDROID_HOME environment variable .

(3) take Android SDK in platform-tools and tools Directory path for , Add to system environment variable Path in .


(4) verification Android-sdk Whether the environment variable is configured successfully
Restart a command prompt , Input adb command , It is shown that Android-sdk Environment variable configuration succeeded .

4、SDK manager.exe Solution to the problem of flash back
(1) Question why :SDK Manager.exe By calling android-sdk-windows\tools\lib\find_java.bat confirm java.exe The path of . Enable cmd.exe The command line switches the path to android-sdk-windows\tools\lib, perform find_java.bat Tools , See the output :C:\Windows\system32\java.exe.
Although the path exists java.exe, But it's not JRE Installation path for . It is estimated that it is due to some needs Java When you install your software , take java.exe、javaw.exe、javaws.exe Copied to C:\windows\system32 Next , Lead to SDK Manager.exe Called... In the wrong location java.exe Caused by .
(2) resolvent :
- Method 1: Delete
C:\Windows\system32\Under thejava.exe、javaw.exe、javaws.exeCan solve . - Method 2:
Edit openandroid-sdk-windows\toolsUnder theAndroid.batfile .
find 35 OK, let's start
rem Check we have a valid Java.exe in the path.
set java_exe=
call lib\find_java.bat
if not defined java_exe goto :EOF modify set java_exe= To your local Java In the installation directory java.exe Tools
take call lib\find_java.bat This line , Change to rem call lib\find_java.bat.
rem Check we have a valid Java.exe in the path.
set java_exe=F:\DevInstall\envs\java\jdk1.8.0_144\jdk\bin\java.exe
rem call lib\find_java.bat
if not defined java_exe goto :EOF Keep close Android.bat file , Reopen Android SDK Manager that will do .
a key : Supporting learning materials and video teaching
So here I have carefully prepared the detailed information of the above outline in The link below is as follows


边栏推荐
- The basis of C language grammar -- learning of local variables and storage categories, global variables and storage categories, and macro definitions
- C中字符串基本操作
- Redis notes (14) - persistence and data recovery (data persistence RDB and AOF, data recovery, mixed persistence)
- Code statistics tools cloc and SCC
- JSP file syntax
- Custom interceptor
- Detailed explanation of the network security competition questions (2) of the 2021 national vocational college skills competition (secondary vocational group)
- 测试实践——app 测试注意点
- Mysql database field query case sensitive setting
- 118. 杨辉三角
猜你喜欢

mysql学习总结

做测试需要知道的内容——url、弱网、接口、自动化、

定制拦截器

逻辑英语结构【重点】

Druid data source for background monitoring

What you need to know to test -- URL, weak network, interface, automation

Detailed explanation of the network security competition questions (2) of the 2021 national vocational college skills competition (secondary vocational group)

P1296 whispers of cows (quick row + binary search)

如何更改微信小程序二维码物料颜色

118. 杨辉三角
随机推荐
LeetCode 0710. Random numbers in the blacklist - preprocessing implementation o (1) value
Why do some functions in the go standard library have only signatures but no function bodies?
Learning and understanding of thread pool (with code examples)
Get the clicked position in the recyclerview
Redis novice introduction
US President signs community safety act to deal with gun issue
Halcon photometric stereoscopic
做测试需要知道的内容——url、弱网、接口、自动化、
Automated testing -- Introduction and use of pytest itself and third-party modules
Extracting public fragments from thymeleaf
leetCode-链表的中间结点
Software testing - how to select the appropriate orthogonal table
Basic grammar of C language -- pointer (character, one-dimensional array) learning
2021 national vocational college skills competition (secondary vocational group) network security competition questions (1) detailed analysis tutorial
TensorFlow遇到的各种错误
Nested recyclerview in nestedscrollview automatically slides to the bottom after switching
My creation anniversary
Leetcode refers to offer II 091 Paint house - modify in place
Throttling, anti chattering, new function, coriolism
c语言语法基础之——函数嵌套、递归 小程序斐波那契之和、阶乘